Convert Document to PDF
document.convert.to_pdfConvert Word, Excel, PowerPoint, HTML, Markdown, images, and more to PDF using a public URL. Specify page size and orientation.
Instructions
Convert Word (DOCX), Excel (XLSX), PowerPoint (PPTX), HTML, Markdown, RTF, ODT, or images (JPG/PNG/SVG) to PDF. Provide source file as URL. Custom page size and orientation. 200+ format pairs supported (ConvertAPI)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_url | Yes | Publicly accessible URL of the source file to convert (e.g. "https://example.com/report.docx") | |
| from_format | Yes | Source file format | |
| page_size | No | PDF page size (default "a4") | |
| orientation | No | Page orientation (default "portrait") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. | |
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. |