Blog
Free Bootstrap 4 HTML Template for Displaying Database Records to PDF
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 ...
Continue readingSolution for overlapping content when generating PDFs with table headers and footers
Developers often run into an issue when converting HTML to PDF that contains tables. The issue is that if the content runs onto the next page, the table headers (<thead>) and footers (<tfoot>) are repeating and overlapping on each other when they shouldn’t be...
Continue readingAdding a Watermark with WKHTMLTOPDF
Introduction If you are on this article, you already know what a watermark is, but just to be sure, it is a way of adding an image to a document to show where it was generated from or to avoid tampering for some reason. A common use of watermarking is to add the word&nbs...
Continue readingOpenStreetMap + LeafletJS + PDF
IntroductionGenerating a map is hard enough. Google has recently clamped down on their APIs which has left developers scrambling for open source solutions. In today’s article we will take a look at how to embed an OpenStreetMap tile into a...
Continue readingCKEditor Save to PDF Plugin
Intro CKEditor4 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 document...
Continue readingConvert HTML to PDF with client side javascript and jquery
It is rare, but there may be some situations where the only option you have to convert HTML to PDF or a URL to PDF is from the client-side javascript. Now there are some existing options such as jsPDF, but they are severely limited. An ideal situation would be to have access t...
Continue readingConvert HTML to PDF with nodejs / javascript
Intro Here at Api2Pdf, we are proud to announce a new client library for nodejs! Our node library makes it easy to convert HTML to PDF, URL to PDF, Word to PDF, and Merge PDFs together. We support a number of endpoints such as wkhtmltopdf, Headless Chrome, and LibreOffice...
Continue readingConvert EML to PDF API – Bulk convert email files to PDF
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 ...
Continue readingTCPDF Alternative for PHP
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 PH...
Continue readingPrint header, footer, page numbers to PDF with wkhtmltopdf
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 wel...
Continue readingPrint page breaks with wkhtmltopdf or Headless Chrome
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,...
Continue readingPrint header, footer, page numbers on PDF with Headless Chrome
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...
Continue readingtinyMCE Save to PDF Plugin
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 documentatio...
Continue readingWKHTMLTOPDF vs Headless Chrome – PDF Size Comparison
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....
Continue readingFree Bootstrap 4 Packing Slip HTML Template
Intro Software developers often have to deal with the real world in the form of shipping products. This is quite common with online shopping sites. Everyone is familiar with a packing slip that is included in the box they receive along with their delivery. As a developer, it i...
Continue readingiTextSharp Alternative for Converting HTML to PDF in C# and Java
Ten years ago, there were very few options to converting HTML to PDF. At the time, we were talking about a handful of PDF rendering engines such as ABCPDF, TCPDF, and iTextSharp. iText reigned supreme over the .NET and Java world. It provided free, open-source DLLs that you co...
Continue readingExport AnyChart graph to PDF with wkhtmltopdf
Intro We previously made a post on how to export a HighChart graph to PDF using the wkhtmltopdf endpoint. This time we are going to cover AnyChart, which is arguably better than HighCarts in many areas. In this post we are going to cover printing an AnyChart gra...
Continue readingApi2Pdf adds support for barcode and QR code generation with ZXING on AWS Lambda
Many Api2Pdf customers generate PDFs for the purposes of generating packing slips, invoices, receipts, product labels, the list goes on and on. It only makes sense for us to make it even more convenient for you to generate barcodes and QR codes. Today, we are announcing the re...
Continue readingHow to use Api2Pdf’s SwaggerHub to get the most out of our support team
Our documentation at https://v2.api2pdf.com is built on swagger and so you are able to use the documentation itself to validate your API calls. Step 1 Make sure you have your API key at the ready from portal.api2pdf.com. On our documentation page, click the Auth...
Continue readingGenerate Custom PDFs from HTML with ScriptCase and Api2Pdf
Intro ScriptCase is a web development platform built on PHP that helps you put together web apps really quickly with less code. Connect to your database of choice, and start generating graphs, reports, and anything else you need. ScriptCase is great because it allows you ...
Continue readingPHP code for converting html to PDFs using Api2Pdf now released
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 languag...
Continue readingMuleSoft – Convert HTML, URLs, and Office Docs to PDF with MuleSoft
This blog post is a walk-through on how to generate PDFs from HTML, URLs, and Office Docs (word, excel, powerpoint, etc) from MuleSoft with the help of Api2Pdf.com. MuleSoft and it’s Anypoint Platform technology allows you to write API specifications in order t...
Continue readingGenerate PDF of Invoice or Receipt with wkhtmltopdf or Headless Chrome
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 l...
Continue readingGenerate PDF Report with Highcharts and wkhtmltopdf
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&rsquo...
Continue readingApi2Pdf joins the RapidApi Platform to make it easy to test and deploy your PDF generation
Api2Pdf’s Mission: Make the experience of generating PDFs for application developers not completely miserable. To continue to pursue this mission, Api2Pdf has joined the RapidAPI.com platform to make it easy to test and deploy your PDF generation. RapidAPI is a...
Continue reading