Merge documents
merge_documentsConsolidate several documents into a single PDF in the order given, while retaining originals unless deletion is requested.
Instructions
Merge several documents into one new PDF, in the order given. The originals stay unless delete_originals is set. Runs asynchronously — poll the returned task with get_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documents | Yes | Document IDs in the order the pages should appear. | |
| archive_fallback | No | Fall back to the archived PDF/A version when an original cannot be merged. | |
| delete_originals | No | Delete the source documents after a successful merge. Irreversible — confirm first. | |
| metadata_document_id | No | Copy tags, correspondent and type from this document onto the merged result. |