Controllers

  • Initialize with PSPDFDocument object as activityItems or directly with title/URL/NSData.

    Declaration

    Objective-C

    
    @interface PSPDFActivityViewController : UIActivityViewController

    Swift

    class PSPDFActivityViewController : UIActivityViewController
  • Generic table view controller with popover resizing code.

    Declaration

    Objective-C

    
    @interface PSPDFBaseTableViewController : UITableViewController

    Swift

    class PSPDFBaseTableViewController : UITableViewController
  • Controller to change the brightness and some related appearance options. In addition to mimicking the system brightness options it also supports additional software dimming and social appearance modes. - note: Best presented as popover, configures the modalPresentationStyle accordingly at init time.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFBrightnessViewController : PSPDFStaticTableViewController

    Swift

    class PSPDFBrightnessViewController : PSPDFStaticTableViewController
  • Subclass of UIImagePickerController used in PSPDFKit when showing the image picker, like when adding an image annotation or when adding a new page to a document from an image.

    Allows to subclass the image picker controller, for example if you need to block portrait: https://stackoverflow.com/questions/11467361/taking-a-photo-in-an-ios-landscape-only-app

    Shows a custom image editor after an image has been selected if shouldShowImageEditor is enabled.

    @note delegate is set to self. Don’t change this, as this will restrict presenting the image editor. imageDelegate will be set when the picker is called from within PSPDFKit logic. You can override the delegate as long as you correctly forward calls to the original target.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFImagePickerController : UIImagePickerController

    Swift

    class PSPDFImagePickerController : UIImagePickerController
  • Simple subclass that forwards following iOS 6+ rotation methods to the top view controller: shouldAutorotate, supportedInterfaceOrientations, preferredInterfaceOrientationForPresentation:.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFNavigationController
        : UINavigationController <UINavigationControllerDelegate>

    Swift

    class PSPDFNavigationController : UINavigationController, UINavigationControllerDelegate
  • The page grabber controller is used to configure the state of the page grabber. It is the owner of the associated page grabber and is responsible for laying it out inside the presentation context as well as handling whether it is enabled or not.

    Note

    You should not initialize an instance of this class yourself. Instead you should ask an instance of PSPDFViewController for a fully configured instance.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFPageGrabberController : NSObject

    Swift

    class PSPDFPageGrabberController : NSObject
  • The screen controller will automatically watch for connected screens if the property pdfControllerToMirror is set, and will release such mirrors once this property has been set to nil.

    Note

    Use this class from the main thread only.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFScreenController : NSObject

    Swift

    class PSPDFScreenController : NSObject
  • Shows a message when the controller is empty.

    See more

    Declaration

    Objective-C

    @protocol PSPDFStatefulViewControllerProtocol <UIContentContainer>

    Swift

    protocol PSPDFStatefulViewControllerProtocol : UIContentContainer