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 a Word document to PDF in Xamarin platforms

Platform: Xamarin.Forms |
Control: DocIO |
Published Date: February 27, 2018 |
Last Revised Date: March 1, 2018

Yes, it is possible to convert a Word document to PDF in Xamarin platforms. From 2018 Volume 1 release (v16.1.0.24) onwards, Syncfusion provides support for Word to PDF conversion in Xamarin platforms.

Step 1: Create a Xamarin Forms application. For .NET Standard Xamarin application, the target framework must be .NET Standard 1.4 or higher version.

Step 2: Add the following NuGet packages from nuget.org as reference in your Xamarin application. Kindly refer here to install NuGet from NuGet Package Manager.

  • Syncfusion.Xamarin.DocIORenderer
  • SkiaSharp

You can also install these packages through package manager console using following commands

Step 3: Kindly add a button in your XAML page.


Add the below code example in the button click event handler to create a simple Word document from scratch and convert it to PDF.


The sample illustrating how to convert an existing Word document to PDF can be downloaded from here.

If you have any questions or require clarification about this support, please let us know in the comments below. You can also contact us through our support forum or Direct Trac. We are happy to assist you!


You must log in to leave a comment
Juha Hietanen
Mar 07, 2018

I copy-pasted your example code and I got error like this: The type 'PdfDocument' is defined in an assembly that is not referenced. You must add a reference to assembly 'Syncfusion.Pdf.Portable, Version=16.1140.0.26, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'.

While I have a (newer?) Syncfusion.Pdf.Portable:

Is this really something how it should be behaved?

I tried also to downgrade the NuGet library to version 24 without luck. It seems that version 26 is just today released into the NuGet but no Essential Studio is available. Maybe that will solve this issue?

Dilli Babu Nandha Gopal [Syncfusion]
Mar 08, 2018

Hi Juha,


We suspect that you are referring the incorrect package to perform Word to PDF conversion in Xamarin application. Syncfusion.Xamarin.DocIORenderer and SkiaSharp are the required NuGet packages which needs to installed. As mentioned in nuget.org for Syncfusion.Xamarin.DocIORenderer , this package needs to be installed in .NET Standard 1.4 compatible or shared Xamarin projects.


We have internally packed Syncfusion.Pdf.Portable .NETStandard 1.4v assembly in Syncfusion.Xamarin.DocIORenderer package where as Syncfusion.Xamarin.Pdf package contains Syncfusion.Pdf.Portable .NETStandard 1.0v assembly due to which, this compilation error has occurred. To resolve this error, we strongly recommended you to refer Syncfusion.Xamarin.DocIORenderer package and uninstall Syncfusion.Xamarin.Pdf package from your application.



Dilli babu.


Please sign in to access our KB

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

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