← Back to catalog
convert.to_pdf
mock data$0.005 / callDocument to PDF
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
page_size
stringPDF page size (default "a4")
source_urlrequired
stringPublicly accessible URL of the source file to convert (e.g. "https://example.com/report.docx")
from_formatrequired
stringSource file format
orientation
stringPage orientation (default "portrait")
Call via REST
curl -X POST https://unifyapi.pro/api/call/convert.to_pdf \
-H "Authorization: Bearer uak_live_..." \
-H "Content-Type: application/json" \
-d '{"page_size":"<page_size>","source_url":"<source_url>","from_format":"<from_format>","orientation":"<orientation>"}'