Some test text!

keyboard_arrow_down

Get started

keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

keyboard_arrow_down

Document Viewer

keyboard_arrow_down

Document Viewer components

keyboard_arrow_down

Annotation and collaboration

keyboard_arrow_down

Advanced customization

keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Form filling

keyboard_arrow_down

Search

keyboard_arrow_down

Redaction

keyboard_arrow_down

Advanced topics

keyboard_arrow_down

Reference

keyboard_arrow_down

PDF Processing API

Quick start - view a document

This tutorial only applies to Xamarin.iOS.

This guide demonstrates how to display a PDF. To begin working with PDFTron SDK, you must have first added it to your project, and initialized the library.

  1. Add a PDF to your project:

    • Right click on Resources
    • Click on Add > Add Files
    • Choose a file (in this tutorial, let's say we added a sample.pdf) and confirm add
    • Make sure the Build Action of the file is set to BundleResource
  1. PDFTron must be initialized with a key that is provided during trial registration or after licensing. This only needs to be done once, and must be done before using any PDFTron classes. This is done as shown:

  2. At the top of your source file, import PDFNet and Tools.

  3. The following shows how to create a document viewer, set the document to display, and present it on screen.