document.convert.to_pdf
Convert documents and images to PDF format from a URL. Supports Word, Excel, PowerPoint, HTML, Markdown, RTF, ODT, JPG, PNG, and SVG files with customizable 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
TableJSON 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") |