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. Automatically generated when a document is assigned. - note: Will be nil, if the document is nil or document editing is not supported for that document.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) PSPDFDocumentEditor *documentEditor;

    Swift

    var documentEditor: PSPDFDocumentEditor? { get }
  • 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 }