Some test text!
For most use cases, we recommend using the
PTTabbedDocumentViewController, which are
UIViewController classes 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,
PDFViewCtrl, which is a
UIView (and is used by the
Add a PDF to your project:
sample.pdf) and confirm add
Build Actionof the file is set to
Instantiate a new
Create a new
PDFViewCtrl 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 package. To add support for annotations and text selection you need to incorporate the tools package.