PSPDFDocumentEditorConfiguration
Objective-C
@interface PSPDFDocumentEditorConfiguration
: PSPDFBaseConfiguration <PSPDFDocumentEditorConfigurationBuilder *>
Configuration options for various document editor controllers.
Note
Set the configuration values before passing this object to view controllers for display.-
A list of predefined page patterns.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<PSPDFPageTemplate *> *_Nonnull pageTemplates;
-
A page size that represents a representative page on the current Needs to be set based on the current document.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFPageSize *_Nonnull currentDocumentPageSize;
-
A list of predefined page sizes.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<PSPDFPageSize *> *_Nonnull pageSizes;
-
Represents the directory of the current document.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDirectory *_Nonnull currentDocumentDirectory;
-
A list of predefined save directories.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<PSPDFDirectory *> *_Nonnull saveDirectories;
-
A list of predefined compressions.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<PSPDFCompression *> *_Nonnull compressions;
-
The currently selected page pattern. Defaults to nil (no page pattern).
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFPageTemplate *_Nonnull selectedTemplate;
-
The currently selected page size. Defaults to
currentDocumentPageSize
if available, otherwise the first item inpageSizes
is used.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFPageSize *_Nonnull selectedPageSize;
-
The currently selected page orientation. Defaults to
PSPDFDocumentOrientationPortrait
.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDocumentOrientation selectedOrientation;
-
The currently selected page background color. Setting this to
nil
will result in the default white color being used.Declaration
Objective-C
@property (nonatomic, readonly) NSColor *_Nonnull selectedColor;
-
The currently selected page image. Setting this to
nil
will result in no image being used.Declaration
Objective-C
@property (nonatomic, readonly) NSImage *_Nonnull selectedImage;
-
A page size that represents a the size of the selected image.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFPageSize *_Nonnull selectedImagePageSize;
-
Represents the compression for the selected image.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFCompression *_Nonnull selectedCompression;
-
The currently selected save directory. Defaults to
currentDocumentDirectory
if available, otherwise the first item insaveDirectories
is used.Declaration
Objective-C
@property (nonatomic, readonly) PSPDFDirectory *_Nonnull selectedSaveDirectory;
-
Defines, whether the image compression should be editable by the user. Defaults to
true
. When set to NO, images will use the default compression of 0.8Declaration
Objective-C
@property (nonatomic, readonly) BOOL userFacingCompressionEnabled;
-
Defines, whether the available source of new pages should be external file. Defaults to
false
. When set to NO, file selector is not available.Note
On iOS 10 and earlier, an application initializing a document picker requires the iCloud entitlement set.Declaration
Objective-C
@property (nonatomic, readonly) BOOL allowExternalFileSource;