Other Enums
The following enums are available globally.
-
List of documented errors within the PSPDFAESCryptoInputStream.
Note
Used in the PSPDFAESCryptoInputStream -(NSError *)streamError method.Declaration
Objective-C
enum PSPDFAESCryptoInputStreamErrorCode {}
Swift
typealias AESCryptoInputStreamError.Code._ErrorType = AESCryptoInputStreamError
-
List of documented errors within the PSPDFAESCryptoOutputStream.
Note
Used in the PSPDFAESCryptoOutputStream -(NSError *)streamError method.Declaration
Objective-C
enum PSPDFAESCryptoOutputStreamErrorCode {}
Swift
typealias AESCryptoOutputStreamError.Code._ErrorType = AESCryptoOutputStreamError
-
The possible types of start- and end-point for line annotations.
See moreDeclaration
Objective-C
enum PSPDFLineEndType {}
Swift
@frozen enum EndType : Int
-
Defines the type of an action that is defined in the PDF spec. See the Adobe PDF Specification for more about actions and action types.
See moreDeclaration
Objective-C
enum PSPDFActionType {}
Swift
@frozen enum Kind : UInt8
-
PDF Annotation types.
These options can be combined for fetching several types of annotations from a document or annotation provider. However, a single annotation must have a single type.
See moreDeclaration
Objective-C
enum PSPDFAnnotationType {}
Swift
struct Kind : OptionSet
-
Annotation border style types.
See moreDeclaration
Objective-C
enum PSPDFAnnotationBorderStyle {}
Swift
@frozen enum BorderStyle : UInt
-
Border effect names. See PDF Reference 1.5, 1.6. (Table 167).
See moreDeclaration
Objective-C
enum PSPDFAnnotationBorderEffect {}
Swift
@frozen enum BorderEffect : Int
-
A set of flags specifying various characteristics of the annotation. PSPDFKit doesn’t support all of those flag settings.
See moreDeclaration
Objective-C
enum PSPDFAnnotationFlags {}
Swift
struct Flag : OptionSet
-
Trigger events for certain viewer actions. See PDF Reference 1.7, 423ff.
See moreDeclaration
Objective-C
enum PSPDFAnnotationTriggerEvent {}
Swift
@frozen enum TriggerEvent : UInt8
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFVerticalAlignment) { PSPDFVerticalAlignmentTop = 0, PSPDFVerticalAlignmentCenter = 1, PSPDFVerticalAlignmentBottom = 2, PSPDFVerticalAlignmentNone = 3 }
Swift
@frozen enum VerticalAlignment : UInt
-
Categories for the author-specific state that may be associated with an annotation.
See moreDeclaration
Objective-C
enum PSPDFAnnotationAuthorStateModel {}
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFAnnotationPlaceholderState) { /// The placeholder is still dormant. /// /// Its `progress` and `error` properties are both `nil`. PSPDFAnnotationPlaceholderStateIdle, /// The placeholder has become active. /// /// Its `progress` property is populated with an object that can be used to display the progress of /// replacing the placeholder with actual content. The placeholder’s `error` property is `nil`. PSPDFAnnotationPlaceholderStateProgressing, /// The process of replacing the placeholder with actual content has failed. /// /// The `progress` property is `nil`. The `error` property holds an object detailing why/in which /// way replacing the placeholder with actual content failed. PSPDFAnnotationPlaceholderStateFailed, /// The process of replacing the placeholder with actual content has been cancelled. PSPDFAnnotationPlaceholderStateCancelled, /// The actual content has become available. /// /// The placeholder has become obsolete, so neither its `progress`, not its `error` property matter /// anymore. PSPDFAnnotationPlaceholderStateCompleted, }
Swift
@frozen enum PSPDFAnnotationPlaceholderState : Int
-
Possible modes for
See morePSPDFAnnotationStateManager
’sstylusMode
property.Declaration
Objective-C
enum PSPDFAnnotationStateManagerStylusMode {}
Swift
@frozen enum AnnotationStateManagerStylusMode : UInt
-
An enum representing a mode in which an annotation is transformed.
See moreDeclaration
Objective-C
enum PSPDFAnnotationTransformationMode {}
Swift
@frozen enum AnnotationTransformationMode : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFAppearanceMode) { /// Normal application appearance and page rendering, as configured by the host app. PSPDFAppearanceModeDefault = 0, /// Renders the PDF content with a sepia tone. PSPDFAppearanceModeSepia = 1 << 0, /// Inverts the PDF page content and applies color correction. On iOS versions prior to iOS 13, it also applies a dark interface theme via UIAppearance. PSPDFAppearanceModeNight = 1 << 1, /// All options. PSPDFAppearanceModeAll = PSPDFAppearanceModeDefault | PSPDFAppearanceModeSepia | PSPDFAppearanceModeNight }
Swift
struct PDFAppearanceMode : OptionSet
-
Indicates the type of image the bookmark indicator button should use.
See moreDeclaration
Objective-C
enum PSPDFBookmarkIndicatorImageType {}
Swift
@frozen enum ImageType : Int
-
The sort order is currently used for bookmarks.
See moreDeclaration
Objective-C
enum PSPDFBookmarkManagerSortOrder {}
Swift
@frozen enum SortOrder : UInt
-
Controls if and how the idle timer should be managed.
See moreDeclaration
Objective-C
enum PSPDFIdleTimerManagement {}
Swift
@frozen enum IdleTimerManagement : UInt
-
Form field flags specific to button fields, matching bit positions in the PDF specification.
See moreDeclaration
Objective-C
enum PSPDFButtonFlag {}
Swift
struct ButtonFlag : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFCacheStoragePolicy) { PSPDFCacheStoragePolicyAutomatic = 0, PSPDFCacheStoragePolicyAllowed, PSPDFCacheStoragePolicyAllowedInMemoryOnly, PSPDFCacheStoragePolicyNotAllowed, }
Swift
@frozen enum StoragePolicy : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFCacheStatus) { PSPDFCacheStatusNotCached, PSPDFCacheStatusInMemory, PSPDFCacheStatusOnDisk, }
Swift
@frozen enum Status : Int
-
See morePSPDFCacheImageSizeMatching
is a bit mask that can be used to control how the cache determines if an image’s size matches a given request.Declaration
Objective-C
enum PSPDFCacheImageSizeMatching {}
Swift
struct ImageSizeMatching : OptionSet
-
Form field flags specific to choice fields, matching bit positions in the PDF specification.
See moreDeclaration
Objective-C
enum PSPDFChoiceFlag {}
Swift
struct ChoiceFlag : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFCollectionReusableFilterViewStyle) { /// Standard view. PSPDFCollectionReusableFilterViewStyleNone, /// Use a blur effect that composes well with light colors, like plain UIKit bars. PSPDFCollectionReusableFilterViewStyleLightBlur, /// Use a blur effect that is suitable for composes well with dark colors, like in the demo app. PSPDFCollectionReusableFilterViewStyleDarkBlur, /// Use a blur effect that’s tinted even lighter than the lightBlur style. PSPDFCollectionReusableFilterViewStyleExtraLightBlur, }
Swift
@frozen enum Style : Int
-
The shape of color button.
See moreDeclaration
Objective-C
enum PSPDFColorButtonShape {}
Swift
enum Shape : Int
-
A color set describes a set of different color pickers that provide colors for a certain use case.
Note
The list of color sets may grow, keep this in mind when designing custom color pickers and provide a suitable default (or fall back to PSPDFKit’s built-in color picker in this case).Declaration
Objective-C
enum PSPDFColorSet {}
Swift
@frozen enum ColorSet : UInt
-
Page Transition. Can be scrolling or something more fancy. See https://pspdfkit.com/guides/ios/current/customizing-the-interface/document-presentation-options/ for further documentation.
See moreDeclaration
Objective-C
enum PSPDFPageTransition {}
Swift
@frozen enum PageTransition : UInt
-
Active page mode.
See moreDeclaration
Objective-C
enum PSPDFPageMode {}
Swift
@frozen enum PageMode : UInt
-
Active scrolling direction. Only relevant for scrolling page transitions.
See moreDeclaration
Objective-C
enum PSPDFScrollDirection {}
Swift
@frozen enum ScrollDirection : UInt
-
Current active view mode.
See moreDeclaration
Objective-C
enum PSPDFViewMode {}
Swift
@frozen enum ViewMode : UInt
-
Default action for PDF link annotations.
See moreDeclaration
Objective-C
enum PSPDFLinkAction {}
Swift
@frozen enum LinkAction : UInt
-
Defines the text selection mode in
See moreTextSelectionView
. RequiresFeatures.textSelection
to be enabled andtextSelectionEnabled
set totrue
.Declaration
Objective-C
enum PSPDFTextSelectionMode {}
Swift
@frozen enum TextSelectionMode : UInt
-
Defines how annotations, which are drawn, are created.
See moreDeclaration
Objective-C
enum PSPDFDrawCreateMode {}
Swift
@frozen enum DrawCreateMode : UInt
-
Menu options when text is selected on this document.
See moreDeclaration
Objective-C
enum PSPDFTextSelectionMenuAction {}
Swift
struct TextSelectionMenuAction : OptionSet
-
The thumbnail bar mode controls how the
See morePDFViewController
displays thumbnails of pages when viewing a document.Declaration
Objective-C
enum PSPDFThumbnailBarMode {}
Swift
@frozen enum ThumbnailBarMode : UInt
-
Defines where the scrubber but should be shown.
See moreDeclaration
Objective-C
enum PSPDFScrubberBarType {}
Swift
@frozen enum ScrubberBarType : UInt
-
Thumbnail grouping setting for
See moreThumbnailBarMode.scrollable
and theThumbnailViewController
.Declaration
Objective-C
enum PSPDFThumbnailGrouping {}
Swift
@frozen enum ThumbnailGrouping : UInt
-
Defines when the user interface view should be shown.
See moreDeclaration
Objective-C
enum PSPDFUserInterfaceViewMode {}
Swift
@frozen enum UserInterfaceViewMode : UInt
-
Defines how the user interface view should animate.
See moreDeclaration
Objective-C
enum PSPDFUserInterfaceViewAnimation {}
Swift
@frozen enum UserInterfaceViewAnimation : UInt
-
Defines how the search is displayed.
See moreDeclaration
Objective-C
enum PSPDFSearchMode {}
Swift
@frozen enum SearchMode : UInt
-
Defines where the render status should be disaplyed.
See moreDeclaration
Objective-C
enum PSPDFRenderStatusViewPosition {}
Swift
@frozen enum RenderStatusViewPosition : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFTapAction) { /// Nothing happens. PSPDFTapActionNone, /// Zoom to the center of the user's tap. PSPDFTapActionZoom, /// Detect text blocks and zoom to the tapped text block. PSPDFTapActionSmartZoom, }
Swift
@frozen enum TapAction : UInt
-
Defines an adaptive value.
See moreDeclaration
Objective-C
enum PSPDFAdaptiveConditional {}
Swift
@frozen enum AdaptiveConditional : UInt
-
Defines how the scroll view inset should be set.
See moreDeclaration
Objective-C
enum PSPDFScrollInsetAdjustment {}
Swift
@frozen enum ScrollInsetAdjustment : UInt
-
Defines when the bookmark indicator should be shown on a page.
See moreDeclaration
Objective-C
enum PSPDFPageBookmarkIndicatorMode {}
Swift
@frozen enum PageBookmarkIndicatorMode : UInt
-
Defines the sound player style used for playing back sound annotations.
See moreDeclaration
Objective-C
enum PSPDFSoundAnnotationPlayerStyle {}
Swift
@frozen enum SoundAnnotationPlayerStyle : UInt
-
Defines if a ink signature should be saved.
See moreDeclaration
Objective-C
enum PSPDFSignatureSavingStrategy {}
Swift
@frozen enum SignatureSavingStrategy : UInt
-
Defines if certificate management/selection should be allowed for digitally signing a document.
See moreDeclaration
Objective-C
enum PSPDFSignatureCertificateSelectionMode {}
Swift
@frozen enum SignatureCertificateSelectionMode : UInt
-
Controls whether spreads can grow larger than the actual view. This can be helpful on smaller screens to make the content more readable.
See moreDeclaration
Objective-C
enum PSPDFConfigurationSpreadFitting {}
Swift
@frozen enum SpreadFitting : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMarkupAnnotationMergeBehavior) { /// Never merge markup annotations. PSPDFMarkupAnnotationMergeNever = 0, /// Attempt to merge markup annotations if the color matches. PSPDFMarkupAnnotationMergeIfColorMatches, }
Swift
@frozen enum MarkupAnnotationMergeBehavior : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFContextMenuOption) { /// Displays a context menu. Suppresses situations where a popover would fit better. PSPDFContextMenuOptionMenuOnly, /// Displays a context menu. Allows a popover if situation fits. PSPDFContextMenuOptionAllowPopovers, /// Does not allow context menu, only presents popovers (if possible, otherwise does not present anything) PSPDFContextMenuOptionPopoversOnly, }
Swift
@frozen enum ContextMenuOption : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_ERROR_ENUM(PSPDFCryptorErrorDomain, PSPDFCryptorErrorCode) { PSPDFCryptorErrorFailedToInitCryptor = 100, PSPDFCryptorErrorFailedToProcessFile = 110, PSPDFCryptorErrorInvalidIV = 200, PSPDFCryptorErrorWritingOutputFile = 600, PSPDFCryptorErrorReadingInputFile = 700, }
Swift
typealias CryptorError.Code._ErrorType = CryptorError
-
Specifies which types of operations the data provider supports. Every data provider must support reading.
See moreDeclaration
Objective-C
enum PSPDFDataProvidingAdditionalOperations {}
Swift
struct DataProvidingAdditionalOperations : OptionSet
-
Specifies the type of
See morePSPDFDataSink
you’re requesting.Declaration
Objective-C
enum PSPDFDataSinkOptions {}
Swift
struct DataSinkOptions : OptionSet
-
The different transform methods (see Section 8.7.1, “Transform Methods”). DocMDP — Used to detect modifications to a document relative to a signature field that is signed by the originator of a document; see “DocMDP” on page 731. UR — Used to detect modifications to a document that would invalidate a signature in a rights-enabled document; see “UR” on page 733. FieldMDP — Used to detect modifications to a list of form fields specified in TransformParams; see “FieldMDP” on page 736. Identity — Used when signing a single object, which is specified by the value of Data in the signature reference dictionary (see Table 8.103). This transform method supports signing of FDF files. See “Identity” on page 737 for details.
See moreDeclaration
Objective-C
enum PSPDFDigitalSignatureReferenceTransformMethod {}
Swift
@frozen enum TransformMethod : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFDiskCacheFileFormat) { /// JPEG encoding. PSPDFDiskCacheFileFormatJPEG, /// PNG encoding. PSPDFDiskCacheFileFormatPNG, }
Swift
@frozen enum FileFormat : Int
-
Document saving strategy.
See moreDeclaration
Objective-C
enum PSPDFDocumentSaveStrategy {}
Swift
@frozen enum SaveStrategy : Int
-
Returns if JavaScript code can execute on this document.
See moreDeclaration
Objective-C
enum PSPDFJavaScriptStatus {}
Swift
@frozen enum JavaScriptStatus : Int
-
Annotations can be saved in the PDF or alongside in an external file.
See moreDeclaration
Objective-C
enum PSPDFAnnotationSaveMode {}
Swift
@frozen enum AnnotationSaveMode : Int
-
Creates annotations based on the text content. See
See moreannotationsByDetectingLinkTypes:forPagesAtIndexes:options:progress:error:
.Declaration
Objective-C
enum PSPDFTextCheckingType {}
Swift
struct TextCheckingType : OptionSet
-
The strategy used by the
See morePSPDFDocumentCheckpointer
to save checkpoints.Declaration
Objective-C
enum PSPDFDocumentCheckpointingStrategy {}
Swift
@frozen enum DocumentCheckpointingStrategy : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFDocumentOrientation) { PSPDFDocumentOrientationPortrait, PSPDFDocumentOrientationLandscape, }
Swift
@frozen enum PDFDocumentOrientation : Int
-
The interactive capabilities of the document editor.
See moreDeclaration
Objective-C
enum PSPDFDocumentEditorInteractiveCapabilities {}
Swift
struct InteractiveCapabilities : OptionSet
-
A set of flags specifying which operations shall be permitted when the document is opened with user access.
See moreDeclaration
Objective-C
enum PSPDFDocumentPermissions {}
Swift
struct DocumentPermissions : OptionSet
-
An enumeration that specifies document permissions level.
See moreDeclaration
Objective-C
enum PSPDFDocumentPermissionsLevel {}
Swift
@frozen enum DocumentPermissionsLevel : UInt
-
The algorithm to use to encrypt a document.
See moreDeclaration
Objective-C
enum PSPDFDocumentEncryptionAlgorithm {}
Swift
@frozen enum DocumentEncryptionAlgorithm : UInt
-
The possible file formats that can be used for sharing documents.
See moreDeclaration
Objective-C
enum PSPDFDocumentSharingFileFormatOptions {}
Swift
struct FileFormatOptions : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFDocumentSharingPagesOptions) { /// Only the page set in `pageIndex` of `PDFViewController`. PSPDFDocumentSharingPagesOptionCurrent = 1 << 0, /// Let the user select a range of pages to share. PSPDFDocumentSharingPagesOptionRange = 1 << 1, /// Send the whole document. PSPDFDocumentSharingPagesOptionAll = 1 << 2, /// Share all pages that contain annotations. PSPDFDocumentSharingPagesOptionAnnotated = 1 << 3 }
Swift
struct PageOptions : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFDocumentSharingAnnotationOptions) { /// Save annotations in the PDF. /// /// Embed annotations into the PDF. /// /// @warning When using this option for printing, no annotations may be printed. This is a result of internal limitations of the printing system on iOS. /// @see [3rd-Party Compatibility](https://pspdfkit.com/guides/ios/current/miscellaneous/3rd-party-compatibility/) PSPDFDocumentSharingAnnotationOptionEmbed = 1 << 0, /// Render annotations into the PDF. PSPDFDocumentSharingAnnotationOptionFlatten = 1 << 1, /// Similar to `PSPDFDocumentSharingAnnotationOptionFlatten`, but renders annotations /// into the PDF with applied visibility settings for printing and converts notes to printable text. /// /// @note Use this option to ensure `PSPDFAnnotationFlagPrint` is correctly applied. If annotations /// are passed to the iOS printing service without previous flattening, visibility flags might not be /// honored correctly and annotations might appear different than in PSPDFKit. PSPDFDocumentSharingAnnotationOptionFlattenForPrint = 1 << 2, /// Save annotations + add summary. Not available on macOS. PSPDFDocumentSharingAnnotationOptionSummary = 1 << 3, /// Remove all annotations. PSPDFDocumentSharingAnnotationOptionRemove = 1 << 4 }
Swift
struct AnnotationOptions : OptionSet
-
Defines a moment in the sharing process.
See moreDeclaration
Objective-C
enum PSPDFDocumentSharingStep {}
Swift
@frozen enum Step : UInt
-
The spread mode determines the conversion between spreads and pages.
See moreDeclaration
Objective-C
enum PSPDFDocumentViewLayoutSpreadMode {}
-
The page mode determines how a page is displayed relative to its neighbouring pages.
See moreDeclaration
Objective-C
enum PSPDFDocumentViewLayoutPageMode {}
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFDownloadManagerObjectState) { PSPDFDownloadManagerObjectStateNotHandled, PSPDFDownloadManagerObjectStateWaiting, PSPDFDownloadManagerObjectStateLoading, PSPDFDownloadManagerObjectStateFailed, }
Swift
@frozen enum ObjectState : UInt
-
Defines the types of items that are dragged.
See moreDeclaration
Objective-C
enum PSPDFDragType {}
Swift
struct DragType : OptionSet
-
Defines the types of items that are dropped.
See moreDeclaration
Objective-C
enum PSPDFDropType {}
Swift
struct DropType : OptionSet
-
Defines targets where drops can happen.
See moreDeclaration
Objective-C
enum PSPDFDropTarget {}
Swift
struct DropTarget : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFDrawViewInputMode) { /// Touches perform drawing operations. PSPDFDrawViewInputModeDraw, /// Touches perform erase operations. PSPDFDrawViewInputModeErase }
Swift
@frozen enum InputMode : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFEditingOperation) { /// One page was removed. `affectedPageIndex` specifies which index. PSPDFEditingOperationRemove, /// The page at `affectedPageIndex` was moved to `pageIndexDestination`. PSPDFEditingOperationMove, /// One page was inserted at `affectedPageIndex`. PSPDFEditingOperationInsert, /// The page at `affectedPageIndex` was rotated. PSPDFEditingOperationRotate, /// One page reference was inserted at `affectedPageIndex`. PSPDFEditingOperationInsertReference }
Swift
@frozen enum Operation : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFEmbeddedGoToActionTarget) { /// Not yet supported PSPDFEmbeddedGoToActionTargetParentOfCurrentDocument, PSPDFEmbeddedGoToActionTargetChildOfCurrentDocument, }
Swift
@frozen enum Target : UInt
-
List of documented errors within the
PSPDFErrorDomain
.Note
Various PSPDFKit methods can also return errors from Apple error domains.Declaration
Objective-C
enum PSPDFErrorCode {}
Swift
typealias PSPDFKitError.Code._ErrorType = PSPDFKitError
-
An enum representing the direction of fast scroll.
See moreDeclaration
Objective-C
enum PSPDFFastScrollDirection {}
Swift
@frozen enum FastScrollDirection : Int
-
The types of conflicts that PSPDFKit can detect.
See moreDeclaration
Objective-C
enum PSPDFFileConflictType {}
Swift
enum FileConflictType : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFFlexibleToolbarPosition) { /// Undefined position. Upon display the toolbar can select an appropriate default /// position or restore position from previous runs. PSPDFFlexibleToolbarPositionNone = 0, /// The toolbar replaces the top (navigation)bar. PSPDFFlexibleToolbarPositionInTopBar = 1 << 0, /// The toolbar is positioned on the left side of the available screen real estate. PSPDFFlexibleToolbarPositionLeft = 1 << 1, /// The toolbar is positioned on the right side of the available screen real estate. PSPDFFlexibleToolbarPositionRight = 1 << 2, /// The toolbar is positioned at the top, below the navigation bar. PSPDFFlexibleToolbarPositionTop = 1 << 3, /// The toolbar is positioned on the left or right side of the available screen real estate. PSPDFFlexibleToolbarPositionHorizontal = PSPDFFlexibleToolbarPositionInTopBar | PSPDFFlexibleToolbarPositionTop, /// The toolbar is positioned in the top (navigation)bar or below it. PSPDFFlexibleToolbarPositionVertical = PSPDFFlexibleToolbarPositionLeft | PSPDFFlexibleToolbarPositionRight, /// The default toolbar positions in the top (navigation)bar and on the left and right side of the available screen real estate. PSPDFFlexibleToolbarPositionDefault = PSPDFFlexibleToolbarPositionInTopBar | PSPDFFlexibleToolbarPositionVertical, /// All valid toolbar positions. Excluding `PSPDFFlexibleToolbarPositionNone`. PSPDFFlexibleToolbarPositionAll = PSPDFFlexibleToolbarPositionHorizontal | PSPDFFlexibleToolbarPositionVertical, }
Swift
struct Position : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFToolbarGroupButtonIndicatorPosition) { /// The toolbar button groping indicator will not not be shown. PSPDFToolbarGroupButtonIndicatorPositionNone = 0, /// The toolbar button groping indicator will be positioned on the bottom left side of the button. PSPDFToolbarGroupButtonIndicatorPositionBottomLeft, /// The toolbar button groping indicator will be positioned on the bottom right side of the button. PSPDFToolbarGroupButtonIndicatorPositionBottomRight, }
-
Defines all the available types a form field can be.
See moreDeclaration
Objective-C
enum PSPDFFormFieldType {}
Swift
@frozen enum Kind : UInt
-
The possible formats a form submission can be encoded in.
See moreDeclaration
Objective-C
enum PSPDFSubmitFormActionFormat {}
Swift
@frozen enum SubmitFormActionFormat : UInt
-
The free text annotation intent type. (Optional; PDF 1.6)
See moreDeclaration
Objective-C
enum PSPDFFreeTextAnnotationIntent {}
Swift
@frozen enum Intent : Int
-
See morePSPDFGalleryContainerViewContentState
controls which content view will be visible.Declaration
Objective-C
enum PSPDFGalleryContainerViewContentState {}
Swift
@frozen enum ContentState : UInt
-
See morePSPDFGalleryContainerViewPresentationMode
controls which background view will be visible.Declaration
Objective-C
enum PSPDFGalleryContainerViewPresentationMode {}
Swift
@frozen enum PresentationMode : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFGalleryItemContentState) { /// The item is waiting to load its content. PSPDFGalleryItemContentStateWaiting, /// The item is currently loading its content. PSPDFGalleryItemContentStateLoading, /// The item's content is ready. PSPDFGalleryItemContentStateReady, /// The item has encountered an error while loading its content. PSPDFGalleryItemContentStateError }
Swift
@frozen enum ContentState : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFGalleryManifestErrorCode) { PSPDFGalleryManifestErrorCodeNoDataSourceProvided }
Swift
@frozen enum PSPDFGalleryManifestErrorCode : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFGalleryVideoItemQuality) { PSPDFGalleryVideoItemQualityUnknown, PSPDFGalleryVideoItemQuality240p, PSPDFGalleryVideoItemQuality360p, PSPDFGalleryVideoItemQuality720p, PSPDFGalleryVideoItemQuality1080p, }
Swift
@frozen enum Quality : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFGalleryVideoItemCoverMode) { /// The cover is not visible. Correspondents to `none`. PSPDFGalleryVideoItemCoverModeNone, /// The cover is visible and a video preview is displayed. Correspondents to `preview`. PSPDFGalleryVideoItemCoverModePreview, /// The cover is visible and an image is displayed. Correspondents to `image`. PSPDFGalleryVideoItemCoverModeImage, /// The cover is visible and the underlying PDF shines through. Correspondents to `clear`. PSPDFGalleryVideoItemCoverModeClear }
Swift
@frozen enum CoverMode : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFGalleryViewControllerState) { /// The view controller is currently not doing anything. PSPDFGalleryViewControllerStateIdle, /// The manifest file is currently downloaded. PSPDFGalleryViewControllerStateLoading, /// The manifest file has been downloaded and the view controller is ready. PSPDFGalleryViewControllerStateReady, /// The view controller could not load or parse the manifest file. PSPDFGalleryViewControllerStateError }
Swift
@frozen enum State : UInt
-
Specifies how a
See morePSPDFImageDocument
should save its contents.Declaration
Objective-C
enum PSPDFImageSaveMode {}
Swift
@frozen enum SaveMode : Int
-
Used to customize the image quality options offered for adding images.
See moreDeclaration
Objective-C
enum PSPDFImageQuality {}
Swift
struct ImageQuality : OptionSet
-
Bitmask for diagnostics of a cache entry.
See moreDeclaration
Objective-C
enum PSPDFInstantCacheEntryState {}
Swift
struct InstantCacheEntryState : OptionSet
-
Lists the observable states of an Instant document descriptor and its sync cycle.
The term “sync cycle” refers to the repetitive transitions between the states “receiving changes” and “sending changes” until there are no unsynced local changes remaining, and the document becomes “clean”. If you are using automatic sync, a sync cycle will begin
PSPDFInstantDocumentDescriptor.delayForSyncingLocalChanges
seconds after the last change to an annotation in the document. When listening for server changes, a sync cycle can additionally be triggered by changes coming in from the server even before that interval has elapsed.
When not listening for server changes and with automatic sync of local changes disabled, a sync cycle starts whenever you call-[PSPDFInstantDocumentDescriptor sync]
.PSPDFInstantDidFinishSyncingNotification
is posted whenever a sync cycle completes successfully. If the cycle fails,PSPDFInstantDidFailSyncingNotification
is posted instead.Note
The states gathered and exposed in this enum have been preselected for relevance to an end user. If you find that you cannot provide the kind of feedback you need to the users of your app, please contact us via https://pspdfkit.com/support/request/Declaration
Objective-C
enum PSPDFInstantDocumentState {}
Swift
@frozen enum InstantDocumentState : Int
-
Possible error codes in the
See morePSPDFInstantErrorDomain
.Declaration
Objective-C
enum PSPDFInstantErrorCode {}
Swift
typealias InstantError.Code._ErrorType = InstantError
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFLabelStyle) { /// Single color. PSPDFLabelStyleFlat, /// Uses blur. PSPDFLabelStyleModern }
Swift
@frozen enum Style : UInt
-
Represents the status of a document in the library.
See moreDeclaration
Objective-C
enum PSPDFLibraryIndexStatus {}
Swift
@frozen enum IndexStatus : UInt
-
Specifies the version of FTS the PSPDFLibrary should use.
See moreDeclaration
Objective-C
enum PSPDFLibraryFTSVersion {}
Swift
@frozen enum FTSVersion : UInt
-
Specifies the priority indexing takes in task scheduling.
See moreDeclaration
Objective-C
enum PSPDFLibraryIndexingPriority {}
Swift
@frozen enum IndexingPriority : UInt
-
Specifies what data is to be indexed to Spotlight.
See moreDeclaration
Objective-C
enum PSPDFLibrarySpotlightIndexingType {}
Swift
@frozen enum SpotlightIndexingType : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(UInt8, PSPDFLinkAnnotationType) { PSPDFLinkAnnotationPage = 0, PSPDFLinkAnnotationWebURL, PSPDFLinkAnnotationDocument, PSPDFLinkAnnotationVideo, /// This is a placeholder for both YouTube and Vimeo PSPDFLinkAnnotationYouTube, PSPDFLinkAnnotationAudio, PSPDFLinkAnnotationImage, PSPDFLinkAnnotationBrowser, /// Any annotation format that is not recognized is custom. (e.g. tel://) PSPDFLinkAnnotationCustom, }
Swift
@frozen enum Kind : UInt8
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFLogLevelMask) { /// Log nothing. PSPDFLogLevelMaskNothing = 0, /// Logs critical issues, that can break or limit the functionality of the framework. /// Should never be disabled. PSPDFLogLevelMaskCritical = 1 << 0, /// Logs errors. Should never be disabled. PSPDFLogLevelMaskError = 1 << 1, /// Logs issues that are not errors or critical, but log-worthy. PSPDFLogLevelMaskWarning = 1 << 2, /// Logs important operations. PSPDFLogLevelMaskInfo = 1 << 3, /// Will log almost everything and slow down the application flow. PSPDFLogLevelMaskDebug = 1 << 4, /// Might log security related details like signature points. /// Never enable this in release builds unless they are solely for testing. PSPDFLogLevelMaskVerbose = 1 << 5, /// Enables all logging categories. PSPDFLogLevelMaskAll = UINT_MAX, }
Swift
struct LogLevelMask : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMediaPlayerControlStyle) { /// Shows no controls whatsoever. PSPDFMediaPlayerControlStyleNone, /// Shows the default control set. PSPDFMediaPlayerControlStyleDefault }
Swift
@frozen enum ControlStyle : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMediaPlayerControllerContentState) { /// The player has no idea what the content state is and hasn't started. PSPDFMediaPlayerControllerContentStateIdle, /// The player is currently loading information about the content. PSPDFMediaPlayerControllerContentStateLoading, /// The player has found that the content is playable. PSPDFMediaPlayerControllerContentStateReady, /// The player has encountered an error. This might be because the Internet /// connection is unavailable to fetch a remote item or because the item is /// unsupported. You can query `contentError` to find out what exactly went wrong. PSPDFMediaPlayerControllerContentStateError }
Swift
@frozen enum ContentState : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMediaPlayerCoverMode) { /// Shows a preview of the video as the cover. PSPDFMediaPlayerCoverModePreview, /// Shows a custom image as the cover. PSPDFMediaPlayerCoverModeCustom, /// Hides the cover completely. /// /// @note If you chose this cover mode, the underlaying player instance will be initialized even /// if the content is not playing yet. PSPDFMediaPlayerCoverModeHidden, /// Shows the cover and hides the video view while the cover is visible. PSPDFMediaPlayerCoverModeClear }
Swift
@frozen enum CoverMode : UInt
-
Defines how a PSPDFModel property key should be encoded into an archive.
See moreDeclaration
Objective-C
enum PSPDFModelEncodingBehavior {}
Swift
@frozen enum EncodingBehavior : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFNamedActionType) { /// No named action. PSPDFNamedActionTypeNone, /// Go to the next page in the document. PSPDFNamedActionTypeNextPage, /// Go to the previous page in the document PSPDFNamedActionTypePreviousPage, /// Go to the first page in the document. PSPDFNamedActionTypeFirstPage, /// Go to the last page in the document. PSPDFNamedActionTypeLastPage, /// Go back using `BackForwardActionList`. Only possible after executing another navigation action. PSPDFNamedActionTypeGoBack, /// Go forward using `BackForwardActionList`. Only possible after executing a GoBack action. PSPDFNamedActionTypeGoForward, PSPDFNamedActionTypeGoToPage, PSPDFNamedActionTypeFind, /// Shows the UI to configure and start printing the document. PSPDFNamedActionTypePrint, /// Shows `OutlineViewController` for the document. PSPDFNamedActionTypeOutline, PSPDFNamedActionTypeSearch, PSPDFNamedActionTypeBrightness, /// Not implemented. PSPDFNamedActionTypeZoomIn, /// Not implemented. PSPDFNamedActionTypeZoomOut, /// Triggers `Document.save()`. PSPDFNamedActionTypeSaveAs, PSPDFNamedActionTypeInfo, PSPDFNamedActionTypeUnknown = NSUIntegerMax, }
Swift
@frozen enum NamedActionType : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFPageTriggerEvent) { /// O (0) Action to be performed when the page is opened. PSPDFPageTriggerEventOpen, /// C (1) Action to be performed when the page is closed. PSPDFPageTriggerEventClose }
Swift
@frozen enum TriggerEvent : UInt
-
The type of new page that will be added
See moreDeclaration
Objective-C
enum PSPDFNewPageType {}
Swift
@frozen enum NewPageType : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFPolygonAnnotationIntent) { /// No intent. PSPDFPolygonAnnotationIntentNone = 0, /// The annotation is intended to function as a cloud object. PSPDFPolygonAnnotationIntentPolygonCloud, /// The polygon annotation is intended to function as a dimension. (not implemented) PSPDFPolygonAnnotationIntentPolygonDimension }
Swift
@frozen enum Intent : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFPresentationStyle) { /// Present the view controller using the style in its `modalPresentationStyle`. PSPDFPresentationStyleNone, /// Present the view controller full-width anchored to the bottom of the screen if the width is horizontally compact, and as a popover otherwise. PSPDFPresentationStyleHalfModal, }
Swift
@frozen enum PresentationStyle : UInt
-
The user interface style for the contents when presenting in a half-modal or a popover.
See moreDeclaration
Objective-C
enum PSPDFPresentationHalfModalStyle {}
Swift
@frozen enum PresentationHalfModalStyle : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFPrintMode) { /// The interactive mode presents the `UIPrintInteractionController`. PSPDFPrintModeInteractive, /// This mode will not show a document preview or any other options (such as print count). PSPDFPrintModeChoosePrinterOnly, /// This mode will use the set `UIPrinter` object on `defaultPrinter` to invoke printing without further UI. PSPDFPrintModePrintDirect }
Swift
@frozen enum Mode : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSInteger, PSPDFPrivateKeyEncoding) { /// A PKCS#8 encoded private key. PSPDFPrivateKeyEncodingPKCS8, /// A PKCS#1 encoded private key. Both PEM and raw ASN.1 binary format supported. PSPDFPrivateKeyEncodingPKCS1, }
Swift
enum Encoding : Int
-
Specifies how a annotation should be included in the resulting document. See
See moremodifyAnnotationsOfType:change:
andmodifyAnnotations:change:error:
.Declaration
Objective-C
enum PSPDFAnnotationChange {}
Swift
@frozen enum AnnotationChange : Int
-
Specifies if the item (image) should be located in the foreground or background
See moreDeclaration
Objective-C
enum PSPDFItemZPosition {}
-
Supported language to use when performing OCR.
See moreDeclaration
Objective-C
enum PSPDFOCRLanguage {}
Swift
enum OCRLanguage : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFReachability) { PSPDFReachabilityUnknown, PSPDFReachabilityUnreachable, PSPDFReachabilityWiFi, /// iOS only PSPDFReachabilityWWAN, }
Swift
@frozen enum ReachabilityStatus : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFRenderType) { /// Renders a single page. PSPDFRenderTypePage, /// Exports or transforms a document PSPDFRenderTypeProcessor, /// Useful to apply settings to all render types. PSPDFRenderTypeAll = NSUIntegerMax }
Swift
@frozen enum RenderType : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFRenderFilter) { /// If set, a grayscale filter will be applied. PSPDFRenderFilterGrayscale = 1 << 0, /// If set and `invertRenderColor` is `true`, the inverted mode (a.k.a. night mode) will be rendered color correct. PSPDFRenderFilterColorCorrectInverted = 1 << 1, /// If set, a sepia filter will be applied. PSPDFRenderFilterSepia = 1 << 2 }
Swift
struct RenderFilter : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFRenderQueuePriority) { /// Used for unspecified renderings with the lowest priority. PSPDFRenderQueuePriorityUnspecified = 0, /// Used for renderings that the user is not aware of, such as building a cache in the background. PSPDFRenderQueuePriorityBackground = 100, /// Used for renderings that the user might see but that are not necessary to complete, such as generating thumbnails that are not necessary for the user to properly work with a document but. PSPDFRenderQueuePriorityUtility = 200, /// Used for renderings that the user requested but that are not required for the user to keep using a document. PSPDFRenderQueuePriorityUserInitiated = 300, /// Used for renderings that the user requested and that are currently blocking their workflow. PSPDFRenderQueuePriorityUserInteractive = 400, }
Swift
@frozen enum Priority : UInt
-
The render request cache policy controls if and how the request, once scheduled, access the cache.
See moreDeclaration
Objective-C
enum PSPDFRenderRequestCachePolicy {}
Swift
@frozen enum CachePolicy : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFRenditionActionType) { PSPDFRenditionActionTypeUnknown = -1, PSPDFRenditionActionTypePlayStop, PSPDFRenditionActionTypeStop, PSPDFRenditionActionTypePause, PSPDFRenditionActionTypeResume, PSPDFRenditionActionTypePlay, }
Swift
@frozen enum Kind : Int
-
Flags for reset-form actions, matching bit positions in the PDF specification.
See moreDeclaration
Objective-C
enum PSPDFResetFormActionFlag {}
Swift
struct Flag : OptionSet
-
The set of predefined knobs to resize the annotation.
See moreDeclaration
Objective-C
enum PSPDFResizableViewOuterKnob {}
Swift
@frozen enum OuterKnob : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFKnobType) { /// Used to resize the annotation. PSPDFKnobTypeOuter, /// Used to adjust the `points` of supported annotations, such as the start and end points of a `PSPDFLineAnnotation`. PSPDFKnobTypeInner, /// Used to rotate the annotation. PSPDFKnobTypeRotation, }
Swift
@frozen enum KnobType : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFResizableViewMode) { /// Nothing is currently happening. PSPDFResizableViewModeIdle, /// The annotation is being moved. PSPDFResizableViewModeMove, /// The annotation is being resized. PSPDFResizableViewModeResize, /// The shape of the annotation is being adjusted (e.g. polyline shape) PSPDFResizableViewModeAdjust, /// The annotation is being rotated. PSPDFResizableViewModeRotate, }
Swift
@frozen enum Mode : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFMediaScreenWindowType) { PSPDFMediaScreenWindowTypeFloating, PSPDFMediaScreenWindowTypeFullscreen, PSPDFMediaScreenWindowTypeHidden, /// Default value PSPDFMediaScreenWindowTypeUseAnnotationRectangle, }
Swift
@frozen enum MediaScreenWindowType : UInt
-
The content scale describes how each spread lays out its content.
See moreDeclaration
Objective-C
enum PSPDFScrollPerSpreadLayoutContentScale {}
Swift
@frozen enum ContentScale : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFSearchStatus) { /// Search hasn't started yet. PSPDFSearchStatusIdle, /// Search operation is running. PSPDFSearchStatusActive, /// Search has been finished. PSPDFSearchStatusFinished, /// Search finished but there wasn't any content to search. PSPDFSearchStatusFinishedNoText, /// Search has been cancelled. PSPDFSearchStatusCancelled }
Swift
@frozen enum Status : Int
-
Visibility options for positioning the search bar.
See moreDeclaration
Objective-C
enum PSPDFSearchBarPinning {}
Swift
@frozen enum SearchBarPinning : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFSearchResultScope) { /// The search results shown with this scope are all from a given page range. PSPDFSearchResultScopePageRange, /// The search results shown with this scope are from the whole document. PSPDFSearchResultScopeDocument, }
Swift
@frozen enum ResultScope : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFSelectableCollectionViewCellStyle) { PSPDFSelectableCollectionViewCellStyleNone, PSPDFSelectableCollectionViewCellStyleCheckmark, PSPDFSelectableCollectionViewCellStyleBorder, PSPDFSelectableCollectionViewCellStyleDimmedBackgroundWithCheckmark, }
Swift
@frozen enum SelectableCollectionViewCellStyle : UInt
-
The possible UX settings that can be set by a
See morePDFSettingsViewController
.Declaration
Objective-C
enum PSPDFSettingsOptions {}
Swift
struct Options : OptionSet
-
Configures the style of a digital signature.
See moreDeclaration
Objective-C
enum PSPDFSignatureAppearanceMode {}
Swift
@frozen enum Mode : UInt
-
The different kinds of input methods we support for creating a handwritten signature.
See moreDeclaration
Objective-C
enum PSPDFDrawInputMethod {}
Swift
@frozen enum DrawInputMethod : UInt
-
Defines the possible biometric properties to store in a digital signature.
See moreDeclaration
Objective-C
enum PSPDFSignatureBiometricPropertiesOption {}
Swift
struct Option : OptionSet
-
The supported encryption algorithms that can be used when signing a document.
See moreDeclaration
Objective-C
enum PSPDFSignatureEncryptionAlgorithm {}
Swift
@frozen enum PDFSignatureEncryptionAlgorithm : UInt
-
A hash algorithm or hash function is a function that maps data of arbitrary size to data of a fixed size. In the context of PDF, this arbitrary data may represent a part of a document. The output of a hash function is always identical if the input data is the same. This fact can be used to check if a document has been altered intentionally or accidentally.
PSPDFKit supports several hash functions. This list is not a complete list of every hash algorithm that is available. Some hash algorithms are not supported yet by the PDF specification for their use in digital signatures.
See moreDeclaration
Objective-C
enum PSPDFSignatureHashAlgorithm {}
Swift
@frozen enum PDFSignatureHashAlgorithm : UInt
-
Severity of a signature validation problem
See moreDeclaration
Objective-C
enum PSPDFSignatureStatusSeverity {}
Swift
@frozen enum Severity : Int
-
Integrity status of a signature field.
See moreDeclaration
Objective-C
enum PSPDFSignatureIntegrityStatus {}
Swift
@frozen enum Integrity : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_ERROR_ENUM(PSPDFSignerErrorDomain, PSPDFSignerErrorCode) { /// No error during the signing process. PSPDFSignerErrorNone = noErr, /// A signature form element was not found in the document. PSPDFSignerErrorNoFormElementSet = 0x1, /// An error occurred while generating the PKCS#7 structure. PSPDFSignerErrorCannotNotCreatePKCS7 = 0x100, /// A problem occurred while adding the signature to the PKCS#7. PSPDFSignerErrorCannotNotAddSignatureToPKCS7 = 0x101, /// A problem occurred while initializing the PKCS#7 structure. PSPDFSignerErrorCannotNotInitPKCS7 = 0x102, /// An error occurred while generating the PKCS#7 signature. PSPDFSignerErrorCannotGeneratePKCS7Signature = 0x103, /// A problem occurred while writing the PKCS#7 signature to the document. PSPDFSignerErrorCannotWritePKCS7Signature = 0x104, /// The document was signed correctly but couldn't be verified afterwards. PSPDFSignerErrorCannotVerifySignature = 0x105, /// The signed document could not be created. Check that you have the necessary permissions for the destination folder. PSPDFSignerErrorCannotSaveToDestination = 0x106, /// The sub-filter type specified to create the signature is not supported. PSPDFSignerErrorUnsupportedSubfilterType = 0x107, /// Cannot find the signature, either in a new or existing document. PSPDFSignerErrorCannotFindSignature = 0x108, /// The attributes could not be signed. PSPDFSignerErrorCannotSignAttributes = 0x109, /// The form element could not be signed. PSPDFSignerErrorCannotSignFormElement = 0x110, /// The form element is already digitally signed, so it does not make sense to digitally sign it again. PSPDFSignerErrorCannotSignAlreadySigned = 0x111, /// The byte range of the document could not be hashed. PSPDFSignerErrorCouldNotHashDocument = 0x112, }
Swift
typealias PDFSignerError.Code._ErrorType = PDFSignerError
-
Sound annotation recording and playback states.
See moreDeclaration
Objective-C
enum PSPDFSoundAnnotationState {}
Swift
@frozen enum State : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSInteger, PSPDFStackViewLayoutDirection) { PSPDFStackViewLayoutDirectionHorizontal, PSPDFStackViewLayoutDirectionVertical, }
Swift
@frozen enum Direction : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFStatefulViewState) { /// Controller is querying data. PSPDFStatefulViewStateLoading, /// Controller finished loading, has no data. PSPDFStatefulViewStateEmpty, /// Controller has data. PSPDFStatefulViewStateFinished }
Swift
@frozen enum StatefulViewState : UInt
-
Defines the style of the status HUD.
See moreDeclaration
Objective-C
enum PSPDFStatusHUDStyle {}
Swift
@frozen enum Style : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFButtonStyle) { /// Single color. PSPDFButtonStyleFlat, /// Uses blur. PSPDFButtonStyleModern, }
Swift
@frozen enum Style : UInt
-
Flags for submit-form actions, matching bit positions in the PDF specification.
See moreDeclaration
Objective-C
enum PSPDFSubmitFormActionFlag {}
Swift
struct Flag : OptionSet
-
A visual style of a tabbed bar. This is not used on iOS 13 and above. Instead bar styles are based on
See moreUIUserInterfaceStyle
.Declaration
Objective-C
enum PSPDFTabbedBarStyle {}
Swift
@frozen enum PDFTabbedBarStyle : UInt
-
Possible values for
See morePSPDFTabbedViewController
’sbarHidingMode
property.Declaration
Objective-C
enum PSPDFTabbedViewControllerBarHidingMode {}
Swift
@frozen enum BarHidingMode : Int
-
Possible values for
See morePSPDFTabbedViewController
’scloseMode
property.Declaration
Objective-C
enum PSPDFTabbedViewControllerCloseMode {}
Swift
@frozen enum CloseMode : Int
-
Form field flags specific to text fields, matching bit positions in the PDF specification.
See moreDeclaration
Objective-C
enum PSPDFTextFieldFlag {}
Swift
struct TextFieldFlag : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFTextInputFormat) { PSPDFTextInputFormatNormal, PSPDFTextInputFormatNumber, PSPDFTextInputFormatDate, PSPDFTextInputFormatTime, }
Swift
@frozen enum TextInputFormat : UInt
-
Define the alignment of the thumbnail collection view.
See moreDeclaration
Objective-C
enum PSPDFThumbnailFlowLayoutLineAlignment {}
Swift
@frozen enum LineAlignment : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_OPTIONS(NSUInteger, PSPDFToolbarButtonControlEvents) { /// Custom event for periodic button actions. PSPDFControlEventTick = 1 << 24, /// Similar to `UIControlEventTouchUpInside` but only sent if the button was /// not sending `PSPDFControlEventTick` events before the touch up. PSPDFControlEventTouchUpInsideIfNotTicking = 1 << 25 }
Swift
struct ControlEvents : OptionSet
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFUndoCoalescing) { /// Does not coalesce events with the same key at all but rather creates one new undo event for every single change. PSPDFUndoCoalescingNone, /// Coalesces events with the same key by time. Assuming that a key changes a number of times over a /// short period of time, only the initial value will be recorded. PSPDFUndoCoalescingTimed, /// Puts all subsequent changes to one key into the same group. This means that constant changes /// of the same value will result in exactly one event, which restores the property to its initial value. PSPDFUndoCoalescingAll }
Swift
@frozen enum UndoCoalescingg : UInt
-
Undocumented
See moreDeclaration
Objective-C
NS_ENUM(NSInteger, PSPDFAutosaveReason) { /// Called when the view controller was visible but is being dismissed/is disappearing because of another presentation. (`viewDidDisappear`) PSPDFAutosaveReasonDisappearing, /// The application is moved to background (see `UIApplicationDidEnterBackgroundNotification`) PSPDFAutosaveReasonMovingToBackground, /// The application is terminating. (see `UIApplicationWillTerminateNotification`) PSPDFAutosaveReasonTerminating, /// A File conflict has been detected and is being resolved. (see `PSPDFFileConflictResolution`) PSPDFAutosaveReasonResolvingFileConflict }
Swift
enum PSPDFAutosaveReason : Int
-
Undocumented
See moreDeclaration
Objective-C
NS_CLOSED_ENUM(NSUInteger, PSPDFWebViewControllerAvailableActions) { PSPDFWebViewControllerAvailableActionsNone = 0, PSPDFWebViewControllerAvailableActionsOpenInSafari = 1 << 0, PSPDFWebViewControllerAvailableActionsMailLink = 1 << 1, PSPDFWebViewControllerAvailableActionsCopyLink = 1 << 2, PSPDFWebViewControllerAvailableActionsPrint = 1 << 3, PSPDFWebViewControllerAvailableActionsStopReload = 1 << 4, PSPDFWebViewControllerAvailableActionsBack = 1 << 5, PSPDFWebViewControllerAvailableActionsForward = 1 << 6, PSPDFWebViewControllerAvailableActionsFacebook = 1 << 7, PSPDFWebViewControllerAvailableActionsTwitter = 1 << 8, PSPDFWebViewControllerAvailableActionsMessage = 1 << 9, /// Only offered if Google Chrome is actually installed. PSPDFWebViewControllerAvailableActionsOpenInChrome = 1 << 10, PSPDFWebViewControllerAvailableActionsAll = 0xFFFFFF, }
Swift
@frozen enum WebViewControllerAvailableActions : UInt