Pagespool for Gotenberg
v1.0.3Hosted Gotenberg: HTML, Markdown, web pages and Office files to PDF with Chromium and LibreOffice.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
html_to_pdf Convert an HTML file to PDF with Chromium
Convert an HTML document up to 4 MB to a PDF with Chromium (Gotenberg). Pass the HTML as base64 in `content_base64`, or as a download link in `file`. JavaScript runs, and images, fonts and CSS the HTML links by public https URL are loaded. Returns `{"download_url": "<link>", "size_bytes": <PDF size>, "expires_in_minutes": 60}`. `download_url` is a link the user can open to get the PDF; it works for 60 minutes. Credits: 1 per call.
| Parameter | Type | Description |
|---|---|---|
content_base64 | The file, base64-encoded. Up to 4 MB before encoding. | |
file | object | The file as a download link, instead of `content_base64`: set `download_url` to a public https URL of the file. |
office_to_pdf Convert office documents to PDF with LibreOffice
Convert an office document up to 4 MB to a PDF with LibreOffice (Gotenberg). Word, Excel, PowerPoint, OpenDocument and the other formats LibreOffice opens. Pass the file as base64 in `content_base64`, or as a download link in `file`, and its name in `filename`: the extension tells LibreOffice the format. Returns `{"download_url": "<link>", "size_bytes": <PDF size>, "expires_in_minutes": 60}`. `download_url` is a link the user can open to get the PDF; it works for 60 minutes. Credits: 1 per call.
| Parameter | Type | Description |
|---|---|---|
filename * | string | The file name with its extension (.docx, .doc, .odt, .xlsx, .pptx, .rtf, …). LibreOffice reads the file by its extension. |
content_base64 | The file, base64-encoded. Up to 4 MB before encoding. | |
file | object | The file as a download link, instead of `content_base64`: set `download_url` to a public https URL of the file. |