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
  • Undocumented

    See more

    Declaration

    Objective-C

    @interface PSPDFBaseViewController : UIViewController
    @end

    Swift

    class PSPDFBaseViewController : UIViewController
  • 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
  • Shows an interface to share a set of documents, allowing the user to customize different aspects of the operation, such as how the annotations should be saved, and a specific page range to share.

    Documents can be shared to different Destinations made available through the PSPDFDocumentSharingDestination enumeration. By default, the PSPDFDocumentSharingViewController will share toPSPDFDocumentSharingDestinationActivity, which will let the user pick the ultimate action for the generated documents via a UIActivityViewController instance (which can be customized via the -activityViewControllerForSharingItems:sender: method.).

    A single PSPDFDocumentSharingViewController instance can offer multiple destinations to share the documents to to the user — they will be represented on a segmented control on the navigation bar of the sharing view controller. However, a Share can only be performed to a single destination at a time. To add Destinations to the list the user can choose from, create a PSPDFDocumentSharingConfiguration object and set the appropriate value on its builder’s destination property, then add that configuration to the sharingConfigurations property on the sharing view controller.

    Please note that Destinations are exclusive per sharing view controller instance, so you can’t have 2 or more configurations with the same destination set.

    Once the instance has been configured appropriately, call -presentFromViewController:sender: on it to present the UI.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFDocumentSharingViewController
        : PSPDFStaticTableViewController <PSPDFStyleable, PSPDFOverridable>

    Swift

    class PSPDFDocumentSharingViewController : PSPDFStaticTableViewController, PSPDFStyleable, PSPDFOverridable
  • 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 subclassing 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.

    UIWindow objects are automatically created for each connected screen, and destroyed once a screen is disconnected or pdfControllerToMirror is 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 PSPDFStatefulViewControlling <UIContentContainer>

    Swift

    protocol PSPDFStatefulViewControlling : UIContentContainer