A file being converted to PDF

Convert to PDF

Convert to PDF is a REST API tool that accepts a wide range of file types as input and reliably converts each into a standardized PDF document.

A bubbling flask with code brackets inside
Try Now with API Lab

Start right from your browser - upload files, choose parameters, generate code, and send API Calls directly from API Lab!  

to receive your free API Key.
Parameters
Required Parameters
POST
/pdf
curl -X POST "https://api.pdfrest.com/pdf" \ 
  -H "Accept: application/json" \ 
  -H "Content-Type: multipart/form-data" \
  -H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
  
Response
The response for your API Call will display here.
Once you've sent your POST request and received a valid response, you can download your output file using the output URL.

Why is pdfRest the best API to convert files to PDF?

pdfRest offers the best solution for converting many common file formats to PDF, because it supports robust formats, standardizes PDFs, and includes adjustable controls.

Robust Format Support

This one single tool will take just about any file you throw its way and convert the contents to a PDF document. Works with all of the following:

  • Word (.doc, .docx)
  • Excel (.xls, .xlsx)
  • PowerPoint (.ppt, .pptx)
  • PostScript (.ps)
  • Encapsulated PostScript (.eps)
  • JPEG (.jpg, .jpeg)
  • TIF (.tif, .tiff)
  • BMP (.bmp)
  • PNG (.png)
  • HTML (.html, from URL)

Standardized PDF Documents

Not all PDFs are created equal - many PDF conversion tools lack the support to generate complex PDF documents that meet all requirements by the International Organization for Standardization (ISO). This can lead to painful problems downstream in your workflows.

With pdfRest’s Convert to PDF Tool, all files are optimized using high-quality Adobe® PDF Library™ technology to ensure consistent and reliable compliance with PDF ISO 32000 specifications.

Adjustable Controls

Fine-tune PDF output files and optimize for your specific use cases with adjustable parameters to support:

  • Creating tagged PDFs from Office files
  • Compressing and downsampling PDF images
  • Setting page size, margins, and orientation for HTML conversion
  • And more!

See documentation for full details

Start from Code Examples
  1. First, you'll need an API Key - to:
    • Stay anonymous with a Guest API Key for 10 free API Calls
    • Sign up for an upgraded API Key with unlimited, continuous service
  2. Choose your programming language
  3. Copy and paste the code to your project
  4. Update Api-Key field with your unique API Key
  5. Update file with the local path to your input
  6. Run this code to send an API Call
See more code examples in our
GitHub repository
Try pdfRest with just a few clicks
Download our Postman Postman Collection
Customize Your Solution
Tagged PDF
The tagged_pdf parameter allows you to create a tagged PDF when converting a Microsoft Office file. A tagged PDF enables accessibility features in supported viewers.
Generate a self-service API Key now!

Create your FREE API Key to start processing PDFs in seconds, only possible with pdfRest.

Compare Plans
Contact Us