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.
  • 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 in pageSizes 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.

    Note

    Will be nil when selectedImage is nil.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFPageSize *_Nonnull selectedImagePageSize;
  • Represents the compression for the selected image.

    Note

    Will be nil when selectedImage is nil.

    Declaration

    Objective-C

    @property (nonatomic, readonly) PSPDFCompression *_Nonnull selectedCompression;
  • The currently selected save directory. Defaults to currentDocumentDirectory if available, otherwise the first item in saveDirectories 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.8

    Declaration

    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;