PSPDFFileAnnotation


@interface PSPDFFileAnnotation : PSPDFAnnotation

PDF File Attachment Annotation (see 12.5.6.15, File attachment annotations). A file attachment annotation (PDF 1.3) contains a reference to a file, which typically shall be embedded in the PDF file (see 7.11.4, Embedded file streams).

  • File icon name. Defines how the attachment looks. Supported are PushPin, Paperclip, Graph and Tag.

    Note

    Defaults to PSPDFFileIconNamePushPin if not specified.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) PSPDFFileIconName _Nonnull iconName;

    Swift

    var iconName: FileIconName { get set }
  • The embedded file.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable)
        PSPDFEmbeddedFile *embeddedFile;

    Swift

    var embeddedFile: PSPDFEmbeddedFile? { get set }
  • Deprecated

    Deprecated in PSPDFKit 7.6 for iOS. Use iconName instead.

    File appearance name. Defines how the attachment looks. Supported are PushPin, Paperclip, Graph and Tag.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *appearanceName;

    Swift

    var appearanceName: String? { get set }