Download Document
AI-generatedSummary
Downloads a completed PDFKraft document by ID and attaches the file as binary data to the output item.
Inputs
- Document ID (required) — ID of the document to download, typically returned by Generate Document.
- Output Field Name — Binary output property name; defaults to
data.
Output shape
One output item per input item, with a JSON object and a binary file.
Checks the document status first and errors if it is not
success. The JSON includesdocumentId,filename,output_type, anddownload_url. The binary file uses the document's filename and detected MIME type; missing output type defaults to PDF.