PSPDFDocumentEditorViewController
Objective-C
@interface PSPDFDocumentEditorViewController
: UICollectionViewController <
PSPDFViewModePresenter, PSPDFDocumentEditorDelegate,
PSPDFFlexibleToolbarContainerDelegate, PSPDFOverridable>
Swift
class PDFDocumentEditorViewController : UICollectionViewController, ViewModePresenter, PDFDocumentEditorDelegate, FlexibleToolbarContainerDelegate, Overridable
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 then 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 (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 isnil
or document editing is not supported for that document.Declaration
Objective-C
@property (nonatomic, nullable) PSPDFDocumentEditor *documentEditor;
Swift
var documentEditor: PDFDocumentEditor? { get set }
-
Manages the document editor toolbar.
Note
The toolbar is not automatically displayed.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDocumentEditorToolbarController *_Nonnull toolbarController;
Swift
var toolbarController: PDFDocumentEditorToolbarController { get }
-
Defines the interactive capabilities of the document editor.
If
PSPDFDocumentEditorInteractiveCapabilityNone
is set, the document editor won’t be able to import images and PDFs, nor export pages to other applications, via drag & drop.See
PSPDFDocumentEditorInteractiveCapabilities.
Note
Defaults to
PSPDFDocumentEditorInteractiveCapabilityAll
. When running on iPhone, setting values on this property has no effect.Declaration
Objective-C
@property (nonatomic) PSPDFDocumentEditorInteractiveCapabilities editorInteractiveCapabilities;
Swift
var editorInteractiveCapabilities: PDFDocumentEditorViewController.InteractiveCapabilities { get set }