Generate a Document From a Template
A 4-step recipe with Adobe. We can help you get access.
Recipe · 4 steps
Generate a Document From a Template
with Adobe
Merge JSON data into a Word template to produce a PDF or DOCX.
- Request a pre-signed upload URI and asset ID for the DOCX template, which is then PUT to the returned uploadUri out of band.
- Submit an asynchronous generateDocument job that merges the JSON data into the uploaded template. Returns 201 with an in-progress job status.
- Poll the generateDocument job until it is no longer in progress, looping back while the status remains "in progress".
- Resolve a pre-signed download URI for the generated output document.
What you'll need to have ready
- accessToken: OAuth 2.0 bearer access token from Adobe IMS.
- jsonDataForMerge: The JSON data to merge into the template.
- outputFormat: Desired output format (pdf or docx).
- jobID: The job identifier taken from the generateDocument response Location header, used to poll status.
For your developer
Arazzo workflow adobe:generate-document, 4 operations: asset.uploadpresignedurl → pdfoperations.documentgeneration → getJobStatus → getAsset. Specs on APIs.io.