FileAttachmentOptions
Overview
FileAttachmentOptions is a interface in Aspose.PDF FOSS for TypeScript.
Options for {@link Page.AddFileAttachment}.
Properties: addToCatalog, bytes, color, contents, icon, name, and 1 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
rect | : [number, number, number, number] | Read | Annotation rectangle [x1, y1, x2, y2] in PDF user space. |
name | : string | Read | Embedded file name. |
bytes | : Uint8Array | Read | File bytes to embed. |
icon | : 'PushPin' | 'Paperclip' | 'Graph' | 'Tag' | Read | Icon key. |
addToCatalog | : boolean | Read | Also register the file in /Names /EmbeddedFiles so it shows in the attachments panel (shares one filespec object). |
contents | : string | Read | Optional /Contents note text. |
color | : [number, number, number] | Read | Optional icon color [r, g, b] in 0..1. |