PSPDFDocumentEditorConfiguration


@interface PSPDFDocumentEditorConfiguration : NSObject

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 (assign, readwrite, nonatomic, nullable)
        PSPDFPagePattern *selectedPagePattern;

    Swift

    var selectedPagePattern: PSPDFPagePattern? { get set }
  • The currently selected page size. Defaults to currentDocumentPageSize if available, otherwise the first item in pageSizes is used.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        PSPDFPageSize *selectedPageSize;

    Swift

    var selectedPageSize: PSPDFPageSize! { get set }
  • The currently selected page orientation. Defaults to PSPDFDocumentOrientationPortrait.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        PSPDFDocumentOrientation selectedOrientation;

    Swift

    var selectedOrientation: PSPDFDocumentOrientation { get set }
  • The currently selected page background color. Setting this to nil will result in the default white color being used.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable) UIColor *selectedColor;

    Swift

    var selectedColor: UIColor! { get set }
  • The currently selected page image. Setting this to nil will result in no image being used.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) UIImage *selectedImage;

    Swift

    var selectedImage: UIImage? { get set }
  • A page size that represents a the size of the selected image. - note: Will be nil when selectedImage is nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFPageSize *selectedImagePageSize;

    Swift

    var selectedImagePageSize: PSPDFPageSize? { get set }
  • Represents the compression for the selected image. - note: Will be nil when selectedImage is nil.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFCompression *selectedCompression;

    Swift

    var selectedCompression: PSPDFCompression? { get set }
  • The currently selected save directory. Defaults to currentDocumentDirectory if available, otherwise the first item in saveDirectories is used.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, null_resettable)
        PSPDFDirectory *selectedSaveDirectory;

    Swift

    var selectedSaveDirectory: PSPDFDirectory! { get set }
  • Defines, whether the image compression should be editable by the user. Defaults to YES. When set to NO, images will use the default compression of 0.8

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL userFacingCompressionEnabled;

    Swift

    var userFacingCompressionEnabled: Bool { get set }