Create one PDF from several templates
craftmypdf_create_pdf_from_templatesWRITE: uses the CraftMyPDF account's own quota (credits; a successful generation is a billable transaction, typically 1 credit per document, and every call counts even with identical data). Generate ONE combined PDF from 2-10 templates, each with its own data (or the shared data). Costs credits for each template rendered. Returns a hosted file URL that expires after expiration minutes. Uses the latest template versions. POST /create-merge with export_type=json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Shared data for entries without their own. | |
| paging | No | Page numbering across the templates: reset (default) restarts at each template, continuous carries on. | |
| templates | Yes | 2-10 entries, rendered in order. | |
| expiration | No | Minutes until the hosted file is deleted from CraftMyPDF's CDN, 1-10080 (default 60; the vendor default is 5). | |
| output_file | No | File name of the output (default output.pdf). |