Document Connection
This acts as a bridge between PdfFragment and DocumentView to access respective functionalities.
Properties
If this property is accessed before the UI is initialized an IllegalStateException will be thrown. Best practice is to wait until the onDocumentLoaded listener is triggered.
Access the PSPDFKitViews from com.pspdfkit.ui.PdfActivity.
This function is used to show/hide overflow menu dropdown in toolbar
Functions
Defers to PdfFragment.addAnnotationToPage(Annotation, Boolean)
Defers to PdfFragment.addDrawableProvider()
Saves the document to an external file even if it hasn't been changed. Note that this may take a while and should not be called on the main thread. This will not clear the {@link #wasModified()} flag on this document instance, and will not replace the source of this document either (i.e. subsequent calls to {@link #saveIfModified()} will still save the document back to the original file).
Sets the page index in PdfFragment.pageIndex