PSPDFFileAnnotation

Objective-C


@interface PSPDFFileAnnotation : PSPDFAnnotation <PSPDFOverridable>

Swift

class FileAnnotation : Annotation, Overridable

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 PSPDFFileIconNamePaperclip if not specified.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var embeddedFile: EmbeddedFile? { get set }