Customizing the Available Document Information

You can pick and choose which document-related information you want to make available to your users by customizing the availableControllerOptions property on the PSPDFDocumentInfoCoordinator object associated with your PSPDFViewController instance.

1
pdfController.documentInfoCoordinator.availableControllerOptions = [.outline, .annotations]
1
pdfController.documentInfoCoordinator.availableControllerOptions = @[PSPDFDocumentInfoOptionOutline, PSPDFDocumentInfoOptionAnnotations];

The example above, would make the document information that's displayed to the user only show the document outline and the annotations list view controller.

The default value for the availableControllerOptions includes all applicable options to the current document. That is, even though the option array would include PSPDFDocumentInfoOptionAnnotations, if the document does not contain any annotations, the Annotations tab is not going to be shown to the user.

Refer to the PSPDFDocumentInfoOption section of our API listings to learn more about the options available.