Some test text!
Xamarin / Guides
This guide demonstrates how to display a PDF. To begin working with Apryse SDK, you must have first added it to your project .
Add a PDF to your project:
Resources
Add
> Add Files
sample.pdf
) and confirm addBuild Action
of the file is set to BundleResource
Apryse must be initialized before using any Apryse classes. This only needs to be done once. This is done as shown:
PDFNet.Initialize("<key-goes-here>");
At the top of your source file, import PDFNet and Tools.
using pdftron;
using pdftron.PDF.Controls;
The following shows how to create a document viewer, set the document to display, and present it on screen.
// Create a PTDocumentController
var documentController = new PTDocumentController();
// The PTDocumentController must be in a navigation controller before a document can be opened
var navigationController = new UINavigationController(documentController);
// Open an existing local file URL.
var fileURL = NSBundle.MainBundle.GetUrlForResource("sample", "pdf");
bool success = documentController.OpenDocumentWithURL(fileURL);
// Show navigation (and document) controller.
this.PresentViewController(navigationController, true, null);
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales