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 PTAnnotationViewController displays a list of all annotations in a document being viewed by a PTPDFViewCtrl 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 the sample project Complete Reader for example usage.

    See more

    Declaration

    Objective-C

    @interface PTAnnotationViewController : UITableViewController <PTOverridable>

    Swift

    class PTAnnotationViewController : UITableViewController, PTOverridable
  • 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 <UIPageViewControllerDataSource>

    Swift

    class PTColorPickerViewController : UIPageViewController, 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>

    Swift

    class PTFindTextToolbar : UIToolbar, UISearchBarDelegate
  • The PTOutlineViewController will display a document’s outline (PDF bookmakrs) 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
  • Displays reflowed page content from a PDF document.

    See more

    Declaration

    Objective-C

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

    Swift

    class PTReflowViewController : UIViewController, PTOverridable, UIPageViewControllerDelegate, UIPageViewControllerDataSource
  • 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