UI Controls

  • The PTAddPagesViewController displays a list of options for adding blank pages or inserting images as pages to a document.

    See more

    Declaration

    Objective-C

    
    @interface PTAddPagesViewController : UITableViewController <PTOverridable>

    Swift

    class PTAddPagesViewController : UITableViewController, PTOverridable
  • The PTAnnotationToolbar is a toolbar with buttons that allows the user to switch between tools. See the Complete Reader sample project for example usage.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationToolbar
        : UIToolbar <PTOverridable, PTFreeHandCreateDelegate, PTEditToolbarDelegate,
                     PTDigitalSignatureToolDelegate>
  • The PTAnnotationViewController displays a list of all annotations in a document. The list will contain any comments that have been added to the annotations, and selecting an annotation will scroll the PTPDFViewCtrl to the position of the annotation.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotationViewController : UITableViewController <PTOverridable>

    Swift

    class PTAnnotationViewController : UITableViewController, PTOverridable
  • The AnnotStyleViewController displays a list of controls for adjusting the appearance and properties of an annotation or annotation type. The available controls are determined based on the type of annotation provided.

    See more

    Declaration

    Objective-C

    
    @interface PTAnnotStyleViewController
        : UIViewController <PTOverridable, PTAnnotStyleDelegate>

    Swift

    class PTAnnotStyleViewController : UIViewController, PTOverridable, PTAnnotStyleDelegate
  • The PTBookmarkViewController displays a list of user-created bookmarks in a document being viewed by a PTPDFViewCtrl.

    See more

    Declaration

    Objective-C

    
    @interface PTBookmarkViewController : UITableViewController <PTOverridable>

    Swift

    class PTBookmarkViewController : UITableViewController, PTOverridable
  • The PTColorPickerViewController displays a grid of color cells for selection. Selecting a color cell notifies the delegate object.

    See more

    Declaration

    Objective-C

    
    @interface PTColorPickerViewController
        : UIPageViewController <PTOverridable, UIPageViewControllerDataSource>

    Swift

    class PTColorPickerViewController : UIPageViewController, PTOverridable, UIPageViewControllerDataSource
  • The PTFindTextToolbar class displays a UISearchBar that allows the user to enter and search text within a document.

    Floating buttons that allow navigating to the next or previous search result are positioned over the pdfViewCtrl while the user is searching.

    See more

    Declaration

    Objective-C

    
    @interface PTFindTextToolbar : UIToolbar <UISearchBarDelegate>
  • The PTOutlineViewController will display a document’s outline (PDF bookmarks) that can be used to navigate the document in a PTPDFViewCtrl. When a bookmark is selected, the controller will navigate the PTPDFViewCtrl to that page.

    See more

    Declaration

    Objective-C

    
    @interface PTOutlineViewController : UITableViewController <PTOverridable>

    Swift

    class PTOutlineViewController : UITableViewController, PTOverridable
  • A container view controller similar to a UITabBarController that displays a segmented control where the selection determines which child view controller to display.

    By default, the navigation lists controller contains an PTOutlineViewController, PTAnnotationViewController, PTBookmarkViewController, and if the document contains OCG layers, a PTPDFLayerViewController.

    See more

    Declaration

    Objective-C

    
    @interface PTNavigationListsViewController : UIViewController <PTOverridable>

    Swift

    class PTNavigationListsViewController : UIViewController, PTOverridable
  • The PTPageIndicatorViewController displays the current page number in a document.

    See more

    Declaration

    Objective-C

    
    @interface PTPageIndicatorViewController : UIViewController <PTOverridable>

    Swift

    class PTPageIndicatorViewController : UIViewController, PTOverridable
  • Displays reflowed page content from a PDF document.

    See more

    Declaration

    Objective-C

    
    @interface PTReflowViewController
        : UIViewController <PTOverridable, UIPageViewControllerDelegate,
                            UIPageViewControllerDataSource,
                            PTReflowSettingsViewControllerDelegate>

    Swift

    class PTReflowViewController : UIViewController, PTOverridable, UIPageViewControllerDelegate, UIPageViewControllerDataSource, PTReflowSettingsViewControllerDelegate
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PTRubberStampViewController : UIViewController <PTOverridable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
    
    /**
     * The collection view object managed by this view controller.
     */
    @property (nonatomic, readonly, strong) UICollectionView *collectionView;
    
    /**
     * Whether editing of thumbnails is allowed. The default is `YES`.
     */
    @property (nonatomic, assign, getter=isEditingEnabled) BOOL editingEnabled;
    
    /**
     * Whether editing of thumbnails is supported. Some modes of opperation do not support editing
     * and so the edit button will be disabled even if `editingEnabled` is true.
    */
    @property (nonatomic, assign, readonly, getter=isEditingSupported) BOOL editingSupported;
    
    /**
     * The rubber stamp manager used by the `PTRubberStampViewController`
     */
    @property (nonatomic, readonly, strong) PTRubberStampManager* rubberStampManager;
    
    /**
     * The PTRubberStampViewController object's delegate.
     */
    @property (nonatomic, weak) id<PTRubberStampViewControllerDelegate> delegate;
    
    @end

    Swift

    class PTRubberStampViewController : UIViewController, PTOverridable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
  • Presents a list of saved signatures, and buttons to create new ones.

    See more

    Declaration

    Objective-C

    
    @interface PTSavedSignaturesViewController
        : UITableViewController <PTOverridable>

    Swift

    class PTSavedSignaturesViewController : UITableViewController, PTOverridable
  • The PTSettingsViewController class displays settings to control a PTPDFViewCtrl.

    See more

    Declaration

    Objective-C

    
    @interface PTSettingsViewController : UITableViewController <PTOverridable>

    Swift

    class PTSettingsViewController : UITableViewController, PTOverridable
  • The PTTextSearchViewController class displays a UISearchBar that allows the user to enter and search text within a document.

    A UIToolbar is also shown with buttons allowing the user to navigate forwards and backwards through the results as well as configure search options. The view controller also provides an interface to display the search results in a UITableView.

    See more

    Declaration

    Objective-C

    
    @interface PTTextSearchViewController : UIViewController <PTOverridable>

    Swift

    class PTTextSearchViewController : UIViewController, PTOverridable
  • The PTThumbnailSliderViewController uses PDFViewCtrl’s GetThumbAsync API to show thumbnails of the current page as the slider is moved.

    See more

    Declaration

    Objective-C

    
    @interface PTThumbnailSliderViewController : UIViewController <PTOverridable>

    Swift

    class PTThumbnailSliderViewController : UIViewController, PTOverridable
  • Displays a grid of thumbnails that can be used for navigation, plus re-arranging and deleting pages.

    See more

    Declaration

    Objective-C

    
    @interface PTThumbnailsViewController
        : UIViewController <PTOverridable, UICollectionViewDataSource,
                            UICollectionViewDelegateFlowLayout,
                            UIPopoverPresentationControllerDelegate>

    Swift

    class PTThumbnailsViewController : UIViewController, PTOverridable, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, UIPopoverPresentationControllerDelegate
  • A class that reads and writes settings stored by a PTToolsSettingsManager singleton object.

    See more

    Declaration

    Objective-C

    
    @interface PTToolsSettingsViewController : UITableViewController <PTOverridable>

    Swift

    class PTToolsSettingsViewController : UITableViewController, PTOverridable