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.

Get the best with pdfRest

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 - visit Get Started to:
    • Stay anonymous with a Guest API Key for 50 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
curl -X POST "https://api.pdfrest.com/pdf" 
  -H "Accept: application/json" 
  -H "Content-Type: multipart/form-data" 
  -H "Api-Key: YOUR API KEY HERE" 
  -F "file=@PATH_TO_FILE/filename" 
  -F "output=example_out"

Customize Your Solution

File

The file parameter allows you to select a local file to be uploaded to pdfRest’s processing server for conversion.

This is a required field unless you include the id or url parameter instead.
Generate a self-service API Key now!

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