Class FileAttachmentAnnotation
A file-attachment annotation (PDF spec §12.5.6.15). Provides a reference to an embedded file, displayed as an icon on the page. When activated, the viewer opens the embedded file.
Inherited Members
Namespace: DRIT.Pdf.Annotations
Assembly: DRIT.Pdf.dll
Syntax
public sealed class FileAttachmentAnnotation : MarkupAnnotation
Properties
Appearance
Gets the appearance settings for the file attachment annotation.
Declaration
public FileAttachmentAppearance Appearance { get; }
Property Value
| Type | Description |
|---|---|
| FileAttachmentAppearance |
Description
Gets or sets the description text for the file attachment.
Declaration
public string? Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
File
Gets the embedded file associated with this annotation.
Declaration
public EmbeddedFile File { get; }
Property Value
| Type | Description |
|---|---|
| EmbeddedFile |
Point
Gets the anchor point of the annotation in page user-space units.
Declaration
public PdfPoint Point { get; }
Property Value
| Type | Description |
|---|---|
| PdfPoint |
Methods
SetFile(string)
Sets the file from a path (legacy compatibility — stores path as description).
Declaration
public void SetFile(string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filePath |