Posts Tagged ‘headless chrome’


Free Bootstrap 4 HTML Template for Displaying Database Records to PDF

October 7th, 2018 / by api2pdf /

Intro The following HTML template is excellent if you have a need to print any of the following items to PDF. Generic application form Job application form Contest submission form Award submission nomination form Grant application form Scholarship application form Any kind of database record or form submission If you are a developer, you likely […]

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 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

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

How to use Api2Pdf’s SwaggerHub to get the most out of our support team

July 21st, 2018 / by api2pdf / No Comments

Api2Pdf prides itself on providing developer-level support. Our team here is made up entirely of full-stack developers who care about building and maintaining a low cost, easy-to-use PDF rendering engine. While we want to support you in the best way possible, it is not feasible to debug each and every one of your custom applications. […]

Read More

PHP code for converting html to PDFs using Api2Pdf now released

July 18th, 2018 / by api2pdf / No Comments

We released the full code and documentation on Github: https://github.com/Api2Pdf/api2pdf.php. As Api2Pdf gains in popularity due to its low-cost and simple to use API for converting HTML to PDFs, we have started to get requests for libraries and packages in other languages. The most heavily requested is PHP. Therefore, we wrote the PHP code for […]

Read More

Generate PDF of Invoice or Receipt with wkhtmltopdf or Headless Chrome

July 12th, 2018 / by api2pdf / No Comments

If you’re a developer building some kind of shopping cart or checkout mechanism, chances are you will have to provide functionality to generate invoices and receipts in PDF format. This can be a real hassle, especially if you’re deployed in a cloud infrastructure like AWS, Azure, or Heroku. The easiest way to generate a PDF […]

Read More

Generate PDF Report with Highcharts and wkhtmltopdf

July 11th, 2018 / by api2pdf / No Comments

Intro As a developer, you might be tasked with the challenge of generating some kind of report to PDF. The report requires graphs like line graphs, bar charts, pie charts, etc. You figure you can generate the report in HTML and then print the HTML to PDF. Great plan, let’s do it. My favorite library […]

Read More