Convert HTML to PDFThe PDF Generator API is a very powerful tool that can generate PDF files from documents with various file formats. These files can be raw HTML codes, website URLs, spreadsheets, documents, and a lot more.

The PDF Generator API encompasses several PDF.co API endpoints for specific modules. We listed the different modules and their corresponding functions below.

All files generated using the API are automatically deleted in 1 hour by default for security reasons. To learn more about PDF.co Security, please check out this page https://pdf.co/security

SIGN UP FOR FREE

PDF Generator API Benefits

Large File Support

The API supports documents with over 100MB file size. We recommend using the Asynchronous Mode when working with large files to avoid process interruption.

Customizable PDF Page

There are PDF.co API endpoints that support PDF page customization such as margin, paper size, orientation to name a few. These customizations apply to the generated PDF.

Various File Formats Support

The PDF Generator API supports several file formats as sources for PDF generation. Creating a PDF version of these documents is necessary for portability and safekeeping. We have a list of supported file formats below.

On-Premise API Server

PDF.co supports on-demand and on-premise API Server. For businesses and enterprises that require hosting the PDF.co REST API in their own servers, please reach out to our support team to get a trial.

PDF Generator API Integrations

PDF.co has over 300+ app integration. Kindly explore our following plugins:

PDF Generator API Input Sources

HTML/URL to PDF

The PDF Generator API can generate PDF files from raw HTML codes and website URLs. The generated PDFs are customizable. They can have custom margin, paper size, orientation, header, and footer.

LEARN MORE

HTML template to PDF

The Handlebars and Mustache templates are HTML templates created with raw HTML codes and some special macros. The PDF Generator API added support for these two template creators and can generate PDF out from the templates that they make.

LEARN MORE

Images to PDF

The PDF Generator API can generate PDFs for images in JPG, PNG, and TIFF format. The API supports multiple images as sources in one request or call. Each image will be generated in individual PDF pages.

Documents to PDF

Replacing existing documents with PDFs is necessary for portability, archival, and safekeeping. The PDF Generator API can generate PDFs from any type of documents. The supported document formats are DOC, DOCX, RTF, TXT, and XPS.

LEARN MORE

Excel to PDF

The PDF Generator API can generate PDF from XLS, XLSX, or CSV spreadsheet format. The API generates PDF by worksheet. It supports the worksheet selector feature for spreadsheets with multiple worksheets.

Email to PDF

The PDF Generator API can generate PDFs from emails. This can range from the body of the email including the sender and recipient information to the email attachments. The email and its attachments will be generated into a single PDF document with multiple pages.

LEARN MORE

Merge to PDF

The PDF Generator API is a very powerful tool. It can generate PDF documents for files with the same file formats and a mixture of files with different formats. All of the mentioned input sources above can all be combined into a single PDF using this API. Another supported format is a Zip file. Everything inside the Zip can be generated into 1 PDF document.

LEARN MORE

Sign Up