Click or drag to resize

PdfFileAttachmentAnnotation Class

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").
Inheritance Hierarchy
SystemObject
  SautinSoft.PdfPdfObject
    SautinSoft.Pdf.AnnotationsPdfAnnotation
      SautinSoft.Pdf.AnnotationsPdfMarkupAnnotation
        SautinSoft.Pdf.AnnotationsPdfFileAttachmentAnnotation

Namespace: SautinSoft.Pdf.Annotations
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2025.3.13
Syntax
public sealed class PdfFileAttachmentAnnotation : PdfMarkupAnnotation

The PdfFileAttachmentAnnotation type exposes the following members.

Properties
 NameDescription
Public propertyAnnotationType Gets the FileAttachment value.
(Overrides PdfAnnotationAnnotationType)
Public propertyAppearance Gets the appearance settings for this PdfFileAttachmentAnnotation.
Public propertyDescription Gets or sets the description.
Public propertyFile

(Required) The file associated with this annotation.

If this property returns , then use the FilePath property because the associated file is specified as a file specification string.

Public propertyFilePath(Required) The path of the file associated with this annotation.
Top
Methods
 NameDescription
Public methodSetFile Sets the file associated with this annotation.
Top
Extension Methods
 NameDescription
Public Extension MethodGetArray Gets the PdfArray that serves as a backing storage of the specified PdfObject or if no PdfArray serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Public Extension MethodGetOrAddDictionary Gets the PdfDictionary that serves as a backing storage of the specified PdfObject.
(Defined by PdfObjectExtensions)
Top
See Also