Archive for August, 2018


Convert EML to PDF API – Bulk convert email files to PDF

August 26th, 2018 / by api2pdf /

Intro I can only imagine you reading this if you are an attorney or work for an attorney in some capacity. Perhaps you are a programmer and have been tasked with converting thousands of emails to PDF format. If so, you have come to the right place. If you only need to convert a single […]

Read More

TCPDF Alternative for PHP

August 22nd, 2018 / by api2pdf /

Intro TCPDF is an open source library to convert HTML to PDF in PHP. There are some key advantages to this. No external dependencies — can generate basic PDFs straight from PHP code. Free This might be okay for some, but there are issues with TCPDF. With a pure PHP implementation, you run into serious […]

Read More

Print header, footer, page numbers to PDF with wkhtmltopdf

August 21st, 2018 / by api2pdf /

Intro Adding a header, footer, and page numbers to your PDFs with wkhtmltopdf is rather straight forward. We provide a list of advanced options here. Wkhtmltopdf is a popular open source PDF rendering engine. The techniques described below will work for wkhtmltopdf as well as Api2Pdf. Api2Pdf is a web service that helps you convert […]

Read More

Print header, footer, page numbers on PDF with Headless Chrome

August 21st, 2018 / by api2pdf /

Intro Surprisingly, if you are using Headless Chrome to generate PDFs, you may find that getting header html, footer html, and page numbers to appear is not completely obvious. There are two reasons for this: 1. You have set a flag to get the headers / footers to appear in the first place. If this […]

Read More

Print page breaks with wkhtmltopdf or Headless Chrome

August 21st, 2018 / by api2pdf /

Intro It is quite common, when tasked with generating a PDF report, or PDF book of some kind that you are required to break up the PDF into separate pages, or items. Typically an item will span multiple pages, and you want the next item in the PDF to start on a brand new page, […]

Read More

tinyMCE Save to PDF Plugin

August 15th, 2018 / by api2pdf /

Intro TinyMCE is a battle tested and widely used WYSIWYG html editor. In this post we will discuss how to use our open source plugin for saving the document to PDF. Example Code + Demo Feel free to check out our github page for detailed step by step documentation. HTML Code The above HTML code […]

Read More

WKHTMLTOPDF vs Headless Chrome – PDF Size Comparison

August 6th, 2018 / by api2pdf /

Our mission at API2PDF is to help developers use AWS Lambda to generate PDFs from HTML as cheaply and quickly as possible.  Our two most popular rendering engines are WKHTMLTOPDF and Headless Chrome. Goal: Find out when it is cheaper to use WKHTMLTOPDF vs Headless Chrome. Testing Methodology In our analysis today we are going […]

Read More