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.
Unfortunately, activation email could not send to your email. Please try again.

How to display PDF document in Xamarin.Forms and draw the ink annotation over the PDF document?

At present we do not have support for displaying the PDF document in Xamarin. However, as a workaround we can export the PDF document to Images in Windows Azure Service and display the exported images of PDF document in Xamarin.Forms.

The following code snippet illustrates the conversion of PDF document to Images in Windows Azure service.

C#

Please find the Windows Azure Service sample that converts PDF page to image in the following link.
http://www.syncfusion.com/downloads/support/directtrac/153866/ze/PdfViewerExportService-90689727

The following code snippet illustrates how to display the image of PDF page in Xamarin with the help of Windows Azure Service.

C#

This application can also be extended to add ink annotation to the PDF document and save the changes in PDF document in Xamarin platform. The following link contains the sample application which allows the user to add ink annotations to the PDF document.

http://www.syncfusion.com/downloads/support/directtrac/153866/ze/PDFViewer-789627111

The following screenshots illustrates the operations that can be performed in the above sample.

To navigate between pages

To add Ink annotation

To save the PDF document

http://www.syncfusion.com/downloads/support/directtrac/157698/1710666819_858bc2b3.PNG

http://www.syncfusion.com/downloads/support/directtrac/157698/1709904146_984c5fdc.PNG

http://www.syncfusion.com/downloads/support/directtrac/157698/1703985555_9914248c.PNG

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
6915 05/30/2016 05/31/2016 Xamarin.Forms PDF
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.