UnifyAPI
← Back to catalog

convert.to_pdf

mock data$0.005 / call

Document 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)

Developer Toolsprovider: Convert#convert#developer

Input schema

page_size

PDF page size (default "a4")

string
source_urlrequired

Publicly accessible URL of the source file to convert (e.g. "https://example.com/report.docx")

string
from_formatrequired

Source file format

string
orientation

Page orientation (default "portrait")

string

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>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.