Learn how to create PDF documents using the TagoIO PDF service generator. Make an HTTP POST request to the PDF service endpoint and the response will be a base64‑encoded PDF. The base64 response can be sent by an Analysis or saved in Files. See the Analysis and Files documentation for examples on sending or saving the response (Analysis, Files).
Use the following endpoint with an HTTP POST request:
POST https://pdf.middleware.tago.io
Learn how to get your Analysis token: Analysis token.
width or height. Defaults to 'A4'. Options: Letter, Legal, Tabloid, Ledger, A0–A6.false.false.date, title, url, pageNumber, totalPages.headerTemplate.1. Must be between 0.1 and 2.false.'1-5,8,11-13'. Defaults to empty string (print all pages).{ top:'1.5cm', right:'1.5cm', left:'1.5cm', bottom:'1.5cm' }.The response body will contain the generated PDF as a base64‑encoded string in the result field, and a boolean status indicating success.
true if successful, false if error.You can decode and save it as a PDF file, or use Analysis to send it via email and Files to store it.
You can also generate PDFs directly from TagoIO Analysis by following this example: analysis-example-generatepdf-report.