FileAttachmentOptions

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

NameTypeAccessDescription
rect: [number, number, number, number]ReadAnnotation rectangle [x1, y1, x2, y2] in PDF user space.
name: stringReadEmbedded file name.
bytes: Uint8ArrayReadFile bytes to embed.
icon: 'PushPin' | 'Paperclip' | 'Graph' | 'Tag'ReadIcon key.
addToCatalog: booleanReadAlso register the file in /Names /EmbeddedFiles so it shows in the attachments panel (shares one filespec object).
contents: stringReadOptional /Contents note text.
color: [number, number, number]ReadOptional icon color [r, g, b] in 0..1.