Some test text!

Loading...
Guides
Step 2: View a document

Step 2: View a document in Xamarin.iOS

  1. If you do not already have an existing application, create a new Visual Studio iOS App project with Single View App.

  2. Add these namespaces to ViewController.cs:

    using pdftron;
    using pdftron.PDF.Controls;
  3. Add a new NavigationController as the entry point and make the existing ViewController the root view controller:

Step 1

Your final setup should look like this:

Step 2

  1. Add the following lines to the ViewDidLoad() method:

    var documentController = new PTDocumentController();
    this.NavigationController.PushViewController(documentController, true);
    documentController.OpenDocumentWithURL(new Uri("https://pdftron.s3.amazonaws.com/downloads/pdfref.pdf"));
  2. Run the application in debug mode and you should see the DocumentController start up:

Next step

Customize Add a PDFTron license key

Get the answers you need: Support

Upcoming Webinar: SDK Features Preview and Live Run-Through | July 14, 2022 at 11 am PT

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use