Skip to content

a11ydocs v1.7.0


a11ydocs / editDocument

Function: editDocument()

ts
function editDocument(data, options?): PdfEditableDocument;

Defined in: src/document.ts:6759

Opens an existing PDF for incremental edits such as appending pages, updating fields, changing structure metadata, and preserving existing bytes when possible.

Parameters

ParameterTypeDescription
dataBinaryDataThe source PDF bytes to edit.
optionsParseDocumentOptionsParsing options, including the password for encrypted sources.

Returns

PdfEditableDocument

The mutable incremental editor.

Released under the ISC license.