• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

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.

Inheritance
object
Annotation
MarkupAnnotation
FileAttachmentAnnotation
Inherited Members
MarkupAnnotation.Title
MarkupAnnotation.Subject
MarkupAnnotation.RichText
MarkupAnnotation.CreationDate
MarkupAnnotation.ReplyType
MarkupAnnotation.Popup
Annotation.Rect
Annotation.Contents
Annotation.Name
Annotation.Modified
Annotation.Flags
Annotation.Color
Annotation.Border
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX