Some test text!
For most use cases, we recommend using the
PTTabbedDocumentViewer, which are
UIViewController objects that present a complete PDF experience including an annotation toolbar, buttons for changing the page layout, searching text, etc. APIs allow convenient customization.
This guide describes a lower-level control,
PTPDFViewCtrl, which is a
UIView (and is used by the
sample.pdfhas been added to your app's bundle (see step 1), and that you've initialized PDFTron.
Instantiate a new
Create a new
PTPDFViewCtrl and add it as a child to the current view:
Running the app will now display the PDF
sample.pdf. However, it will not support annotation creation, editing, text selection, or any other UI aspect that is handled by
Tools.framework. To add support for annotations and text selection you need to incorporate the tools framework.