Other Classes

The following classes are available globally.

  • A color patch represents a single patch of colors in the UI. It contains of one or multiple colors that should be grouped together.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFColorPatch : NSObject

    Swift

    class PSPDFColorPatch : NSObject
  • A color palette is a set of color patches that are grouped together based on a specific look or theme.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFColorPalette : NSObject

    Swift

    class PSPDFColorPalette : NSObject
  • The factory used to create color pickers. Subclass this to customize your color pickers.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFColorPickerFactory : NSObject

    Swift

    class PSPDFColorPickerFactory : NSObject
  • Toolbar drag & drop indicator view.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFFlexibleToolbarDragView : UIView

    Swift

    class PSPDFFlexibleToolbarDragView : UIView
  • Create, merge or modify PDF documents. Also allows to flatten annotation data.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFProcessor : NSObject

    Swift

    class PSPDFProcessor : NSObject
  • Operation that converts many file formats to PDF. Needs to be executed from a thread. Requires the PSPDFFeatureMaskPDFCreation feature flag.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFConversionOperation : NSOperation

    Swift

    class PSPDFConversionOperation : Operation
  • Represents an item that can be added to either a new page or an existing page. The item can either be a UIImage which will then be compressed as a JPEG using imageJpegCompressionQuality or a NSURL that points to a JPEG or PDF file.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFProcessorItem : NSObject

    Swift

    class PSPDFProcessorItem : NSObject
  • This class describes the save options you want to enforce when processing a pdf file. Using a save options object overrides the default options of a file.

    A pdf file can have multiple security-related options set. The owner password generally controls the editing of a document and is required as soon as you want to encrypt a document in any kind. The user password prevents users from viewing the pdf. It is optional but if you specify it you also need to specify an owner password.

    You can also specify the key length of the encryption. This controls how large the key is that is used for actually encrypting the document. The key is derived from the passwords you specify. As soon as you specify at least an owner password you also need to decide on a key length to be used. You can also specify PSPDFProcessorSaveOptionsKeyLengthAutomatic in all cases and let PSPDFKit decide on if and what key length to use.

    To specify what operations are allowed when opening the document with user privileges you can also set PSPDFDocumentPermissions. With user privileges you can always view the file in question and by specifying PSPDFDocumentPermissions you can grant further rights that otherwise would only be available when the user has owner privileges.

    Note

    In order to use this class, you need a license that enables you to use the Document Editor. If you want to process a file while keeping the options of the original file, simply use nil as safe option.
    See more

    Declaration

    Objective-C

    
    @interface PSPDFProcessorSaveOptions : NSObject

    Swift

    class PSPDFProcessorSaveOptions : NSObject
  • Represents a single HUD item. - warning: Only use this class on the main thread.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFStatusHUDItem : NSObject

    Swift

    class PSPDFStatusHUDItem : NSObject
  • Status HUD view that represents a given status HUD item.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFStatusHUDView : UIView

    Swift

    class PSPDFStatusHUDView : UIView
  • Layout attributes for the thubmnail collection view.

    See more

    Declaration

    Objective-C

    
    @interface PSPDFThumbnailFlowLayoutAttributes : UICollectionViewLayoutAttributes

    Swift

    class PSPDFThumbnailFlowLayoutAttributes : UICollectionViewLayoutAttributes