Web SDKv1.0.0

PDFDocument.attachments

Embedded files — list, read, add, remove. Without the extract feature every name list() returns is '' and data() throws FEATURE_NOT_LICENSED; add() and delete() need edit-pages. See AttachmentsApi.
getterNamespacessince 1.0.0

Signature

get attachments(): AttachmentsApi

Returns

AttachmentsApi

Example

TypeScript
const files = await doc.attachments.list();

More in PDFDocument