We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to convert HTML to PDF in Xamarin platform

Platform: Xamarin.Forms |
Control: PDF |
Published Date: January 9, 2017 |
Last Revised Date: January 9, 2017

HTML to PDF conversion is supported in Xamarin platform by using web service. We can have the HTML to PDF conversion part in the web service and use it in the Xamarin application. The following code example explains how to create and use the web service in Xamarin platform.

Web Service:



The below code example explains how to use the web service to the Xamarin applications.



Web Service: http://www.syncfusion.com/downloads/support/directtrac/general/ze/WebRoleWebkit-1367274379  

Xamarin Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/HtmlToPDFConversion1740882802


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment
Ricky Ombina
Jan 09, 2018


Do we need a service to make this work?



Prakash Viswanathan [Syncfusion]
Jan 10, 2018

Hi Ricky,


Since HTML to PDF conversion does not have native support in Xamarin,  we need to create a web service to make use of this work around.



Prakash V

Reihaneh Khaksaran
Dec 08, 2018


Is it possible to convert an html string to PDF using syncfusion?



Prakash Viswanathan [Syncfusion]
Dec 10, 2018

Hi Reihaneh,

Yes, it is possible to convert HTML string to PDF using HTML converter. As our HTML converter does not have native support in Xamarin, we need to create a web service for converting a HTML string to PDF. Kindly refer the following link for converting HTML string to PDF.

KB: https://www.syncfusion.com/kb/9890/


Prakash V

Michael Nasers
Aug 28, 2019

This is very disappointing.

Gowthamraj Kumar [Syncfusion]
Aug 29, 2019

Hi Michael,

Currently we do not have native support for converting HTML to PDF in Xamarin. As a workaround, we can achieve convert HTML to PDF by using web service. We will revamp this KB article with complete steps and details to convert HTML to PDF in Xamarin platform.

Please let us know if you need any further assistance on this.


Gowthamraj K


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon