Forum Xamarin Xamarin.Forms

PDF library compatible with Xamarin?

I have been looking/researching different kinds of PDF libraries which are compatible with Xamarin but apart from PDFTron and PSPDFKit which are ridiculously expensive, I haven't been able to find one. Ideally, the library would be compatible with Xamarin.Forms but I would definitely consider others which are Xamarin.IOS and Xamarin.Android compatible.

The library should have the abilities to: 1. Render the PDF to the screen 2. Decrypt a PDF 3. Add and keep track of annotations 4. Bookmark 5. Text search

Please feel free to suggest any libraries that meet these requirements.

Answers

  • AdamPAdamP AUUniversity ✭✭✭✭✭

    @Constantinos.3306 - a free cross platform PDF library can be found using the pdfjs with a WebView and instructions are at Display a Local PDF File in a WebView.

    However that is just displaying. In terms of decryption, annotations and search you will certainly be looking at one of those expensive libraries.

  • Constantinos.3306Constantinos.3306 USMember ✭✭

    Thank you for your reply @AdamP . I am aware of how displaying a local pdf file in a webview works but I am afraid that won't work in my case. I wouldn't mind paying, but I wouldn't consider 4-5 figures range.

  • AdamPAdamP AUUniversity ✭✭✭✭✭

    @Constantinos.3306 - How about this one then? https://components.xamarin.com/view/xfinium.pdf

    Its only $299

  • Constantinos.3306Constantinos.3306 USMember ✭✭
    edited June 2016

    Unfortunately @AdamP, XFinium does not render the PDF. I tried using it along with viewing the PDF in a webviewer as you mentioned above, but the annotations are not being rendered on the screen. The webviewer displays only the original pdf. The same happens with the Syncfusion PDF library. It works the same way as XFinium does.

  • I just require my users to have a PDF viewer installed on their device to see the PDF. My original need was to create PDF's on the device. For that I use the built-in support from iOS and Siberix for Android. However, I am not sure Siberix is still in business.

  • Constantinos.3306Constantinos.3306 USMember ✭✭

    Do you have all those features that I listed above in your app @ShawnCastrianni.5092 ? And if yes, how did you manage to implement those without the use of a PDF library?

  • AdamPAdamP AUUniversity ✭✭✭✭✭

    @Constantinos.3306 - @ShawnCastrianni.5092 raises a good point, can you redirect people to a 3rd party PDF app installed on their mobile device or must it be inside the app?

  • Constantinos.3306Constantinos.3306 USMember ✭✭

    All of the features that I described need to be handled within the app @AdamP .

  • PackiaseelanSPackiaseelanS USMember ✭✭

    Hi @AdamP,

    Basically, I'm trying to implement the annotation feature over the pdf. Can the annotations be shown as a toolbar? So that user can pick and drop them over pdf while editing.

    In https://components.xamarin.com/view/xfinium.pdf user interaction Tool bar available or not?

  • AdamPAdamP AUUniversity ✭✭✭✭✭

    Sorry @PackiaseelanS - I haven't used that control before myself. You might want to talk to their support, to get your question answered.

  • PackiaseelanSPackiaseelanS USMember ✭✭

    Thank you @AdamP

  • PackiaseelanSPackiaseelanS USMember ✭✭

    @AdamP can you please suggest me some tools to annotate pdf with user interaction

  • LuhminatorLuhminator USMember ✭✭

    Old post but maybe for someone usefule answer. I found only few PDF kits when is toolbatr integrated into the pdf viewer component. All are paid.

      1. PSPDF kit
      1. Pdftron
      1. SyncFusion PDF kit
      1. RadaeePDF kit
      1. Xfinium - has no own toolbar, but based on their support this ffeatures are available over the code.

    Some sources:

  • LuhminatorLuhminator USMember ✭✭

    Sources:

    pdf framework and tools for ios mac osx xamarin
    [https:// medium.com/@jigarm/pdf-framework-and-tools-for-ios-mac-osx-xamarin-af525a39b4a3](https:// medium.com/@jigarm/pdf-framework-and-tools-for-ios-mac-osx-xamarin-af525a39b4a3)

    comparison of popular pdf libraries on ios and android
    [http:// toughdev.com/content/2015/02/comparison-of-popular-pdf-libraries-on-ios-and-android/](http:// www.toughdev.com/content/2015/02/comparison-of-popular-pdf-libraries-on-ios-and-android/)

Sign In or Register to comment.