PSPDFDocumentEditorViewController


@interface PSPDFDocumentEditorViewController
    : UICollectionViewController <PSPDFViewModePresenter,
                                  PSPDFDocumentEditorDelegate>

The main view controller for document editing. Shows a collection view with page thumbnails that reflect the document editor changes. Selection is performed on this object and the selection state is than forwarded to toolbarController.

Note

This class requires the Document Editor component to be enabled for your license.
  • Class used for thumbnails. Defaults to PSPDFDocumentEditorCell and customizations should be a subclass of thereof.

    See

    -[PSPDFViewModePresenter cellClass]

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) Class _Nonnull cellClass;

    Swift

    var cellClass: AnyClass { get set }
  • The associated document editor. The document editor is automatically generated when a document is assigned. Alternatively one can be assigned manually via this property.

    Note

    Will be nil, if the document is nil or document editing is not supported for that document.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFDocumentEditor *documentEditor;

    Swift

    var documentEditor: PSPDFDocumentEditor? { get set }
  • Manages the document editor toolbar.

    Note

    The toolbar is not automatically displayed.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        PSPDFDocumentEditorToolbarController *_Nonnull toolbarController;

    Swift

    var toolbarController: PSPDFDocumentEditorToolbarController { get }