Some test text!
Xamarin / Guides / Step 2: View a document
If you do not already have an existing application, create a new Visual Studio iOS App
project with Single View App
.
Add these namespaces to ViewController.cs
:
using pdftron;
using pdftron.PDF.Controls;
Add a new NavigationController as the entry point and make the existing ViewController the root view controller:
Your final setup should look like this:
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"));
Run the application in debug mode and you should see the DocumentController start up:
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales