Convert office documents to PDF with LibreOffice
office_to_pdfConvert 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}: give the user the download_url. Requires
an API key.
Credits: 1 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file as a download link, instead of `content_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL. | |
| filename | Yes | The file name with its extension (.docx, .doc, .odt, .xlsx, .pptx, .rtf, …). LibreOffice reads the file by its extension. | |
| content_base64 | No | The file, base64-encoded. Up to 4 MB before encoding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||