February 10, 2026, from 8:00 AM to 9:00 AM PST. Account-related operations might be temporarily unavailable.
Product:
Section:
Product:
Get started
Samples
Basic operations
Learn more
Viewer
UI Customization
Annotation
Collaboration
MS Office
Conversion
PDF/A
Forms
Generate
Page manipulation
Editing page content
Extraction
Digital signature
Search
Bookmarks
Compare files
Optimization
Layers (OCGs)
Measurement
Print
Redaction
Security
Portfolios
Low-level PDF API
Changelogs
Customize a document view controller on iOS
Legacy Viewer
This guide is for the legacy PTDocumentViewController class. This class is no longer being updated. For the best viewing experience and to take advantage of new developments, the PTDocumentController should be used. Please see this guide for information.
Because the document viewer classes are part of the open source Tools UI framework, it is possible to achieve virtually any required modification. That said, it is usually faster and more convenient to configure the viewers via APIs, which this guide describes.
PTDocumentViewController
The image on the left indicates areas that are controllable via the PTDocumentViewController's API. Information on customizing these is available directly below.
The image on the right indicates a number of default buttons that create and present new controls. Information on where to look to customize these presented controls can be found in the component controls table.
1: Left bar button item
When presented in a UINavigationController, the PTDocumentViewController's left bar button item will display the name of the previous view controller's navigation item's title (or, if set, its backBarButtonItem). When presented as a UINavigationController's root controller, the space will be empty.
The PTDocumentViewController's left bar button item can be added or replaced as follows:
1let title = NSLocalizedString("Documents", comment: "Go back to the document picker.")
The default buttons are all accessible via properties, making it easy to rearrange or move them. The following code swaps the position of the search button and navigation lists button:
The icons of existing buttons may be changed by creating new UIBarButtonItems that have the same target and action as an existing item, and replacing the existing item with the new item:
Note that all PDF "interaction" (annotations, form filling, text selection, link following, etc.) is supplementary to the PDFViewCtrl, and is implemented in the open source tools.framework.
4: Page number indicator
The page indicator can be enabled/disabled via the pageIndicatorEnabled property.
5: Thumbnail slider controller
The thumbnail slider can be enabled/disabled via the bottomToolbarEnabled property.