Explore Plans
Mobile menu Close menu
PDF.co

Convert document to PDF

Pro plus icon This query returns a PDF file URL created by converting a source document (DOCX, XLSX, HTML, or image) from a provided URL.

Developer info

API endpoint slug
pdf_co.convert_document_to_pdf
Runtime method
performQuery("pdf_co.convert_document_to_pdf"}

Query fields

File url Text input > Other

Label
File URL
Helper text
Public URL of the source document to convert (DOCX, XLSX, HTML, or image).
Slug
file_url
Required
true
Can have default value
true

Output format Dropdown list

Label
Output format
Helper text
Choose the output format. Defaults to PDF.
Slug
output_format
Required
false
Can have default value
true

Ingredients

Pdf url URL of the converted PDF file.

Slug
pdf_url
Filter code
PdfCo.convertDocumentToPdf.PdfUrl
Type
Web URL
Example
https://pdf-temp-files.s3.amazonaws.com/output.pdf

Page count Number of pages in the converted PDF.

Slug
page_count
Filter code
PdfCo.convertDocumentToPdf.PageCount
Type
String
Example
3

File size Size of the converted PDF in bytes.

Slug
file_size
Filter code
PdfCo.convertDocumentToPdf.FileSize
Type
String
Example
124518

Converted at When this query ran (PDF.co's response carries no completion timestamp, so this is set on the IFTTT side).

Slug
converted_at
Filter code
PdfCo.convertDocumentToPdf.ConvertedAt
Type
Date with time (ISO8601)
Example
2020-07-08T04:17:06+05:00