Copy

PdfAttachment

File embedded in one PDF; caller data is copied and never transferred or detached.

ON_THIS_PAGE
  1. Signature
  2. Properties

File embedded in one PDF; caller data is copied and never transferred or detached.

Signature

export interface PdfAttachment {
    name: string;
    data: ArrayBuffer | Uint8Array;
    mimeType?: string;
    relationship?: "Source" | "Data" | "Alternative" | "Supplement" | "Unspecified";
    description?: string;
    modifiedAt?: Date;
}
SOURCE:324

Properties

PropertyTypeRequiredRead onlyDefaultDescription
namestringYesNoNoneNonempty, unique filename. Unicode is preserved.
dataArrayBuffer | Uint8ArrayYesNoNoneOriginal bytes; a Uint8Array embeds only its selected view.
mimeTypestringNoNoapplication/octet-streamMIME media type without parameters. Defaults to application/octet-stream.
relationship"Source" | "Data" | "Alternative" | "Supplement" | "Unspecified"NoNoUnspecifiedRelationship to the document. Defaults to Unspecified.
descriptionstringNoNoNoneOptional human-readable attachment description.
modifiedAtDateNoNoNoneExplicit modification time, stored in UTC with second precision; no date is invented.
ON_THIS_PAGE
  1. Signature
  2. Properties
html2realpdf documentationCopyright © Imggion
DOCUMENTATION_TREE