docraptor_create_document
Create a document (PDF/XLS/XLSX)
Generate a PDF or Excel document from HTML (document_content) or a URL (document_url). Exactly one of document_content / document_url is required. By default the document is HOSTED and the tool returns a { download_url } you can fetch — ideal for agents (no large binary in the response). Hosted documents require a paid DocRaptor add-on. Without that add-on, set hosted:false to get the raw document back as base64, or async:true to enqueue a job and poll docraptor_get_document_status. Test mode is enabled by default: PDFs are watermarked and Excel files are limited to 20 rows. Set test:false explicitly to create a real document that consumes account credits (billed). DocRaptor API: POST /docs.
taghelpnametesttypeasynchostedstrictpipelinereferrerjavascriptcallback_url+7 more