Appearance
zeropdf / editDocument
Function: editDocument()
ts
function editDocument(data, options?): PdfEditableDocument;Defined in: src/document.ts:6461
Opens an existing PDF for incremental edits such as appending pages, updating fields, changing structure metadata, and preserving existing bytes when possible.
Parameters
| Parameter | Type | Description |
|---|---|---|
data | BinaryData | The source PDF bytes to edit. |
options | ParseDocumentOptions | Parsing options, including the password for encrypted sources. |
Returns
The mutable incremental editor.