Some test text!
iOS / Guides
This guide demonstrates how to display a PDF. To begin working with Apryse SDK, you must have first added it to your project .
Apryse must be initialized before using any Apryse classes. This only needs to be done once. This is done as shown:
PTPDFNet.initialize("<key-goes-here>")
At the top of your source file, import PDFNet and Tools.
import PDFNet
import Tools
The following shows how to create a document viewer, set the document to display, and present it on screen.
// Create a PTDocumentController
let documentController = PTDocumentController()
// The PTDocumentController must be in a navigation controller before a document can be opened
let navigationController = UINavigationController(rootViewController: documentController)
// Open an existing local file URL.
let fileURL: URL! = Bundle.main.url(forResource: "sample", withExtension: "pdf")
documentController.openDocument(with: fileURL)
// Show navigation (and document) controller.
self.present(navigationController, animated: true, completion: nil)
Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales