Blog

OpenStreetMap + LeafletJS + PDF

Published Sep 05 2018

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 reading

CKEditor Save to PDF Plugin

Published Sep 04 2018

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 reading

Convert HTML to PDF with client side javascript and jquery

Published Sep 02 2018

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 reading

Convert HTML to PDF with nodejs / javascript

Published Sep 02 2018

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 reading

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

Published Aug 26 2018

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 reading

TCPDF Alternative for PHP

Published Aug 22 2018

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 reading

Print header, footer, page numbers to PDF with wkhtmltopdf

Published Aug 21 2018

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 reading

Print page breaks with wkhtmltopdf or Headless Chrome

Published Aug 21 2018

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 reading

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

Published Aug 21 2018

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 reading

tinyMCE Save to PDF Plugin

Published Aug 15 2018

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 reading

WKHTMLTOPDF vs Headless Chrome – PDF Size Comparison

Published Aug 06 2018

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 reading

Free Bootstrap 4 Packing Slip HTML Template

Published Jul 28 2018

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 reading

iTextSharp Alternative for Converting HTML to PDF in C# and Java

Published Jul 28 2018

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 reading

Export AnyChart graph to PDF with wkhtmltopdf

Published Jul 24 2018

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 reading

Api2Pdf adds support for barcode and QR code generation with ZXING on AWS Lambda

Published Jul 22 2018

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 reading

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

Published Jul 21 2018

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

Continue reading

Generate Custom PDFs from HTML with ScriptCase and Api2Pdf

Published Jul 21 2018

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 reading

PHP code for converting html to PDFs using Api2Pdf now released

Published Jul 18 2018

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 reading

MuleSoft – Convert HTML, URLs, and Office Docs to PDF with MuleSoft

Published Jul 14 2018

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 reading

Generate PDF of Invoice or Receipt with wkhtmltopdf or Headless Chrome

Published Jul 12 2018

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 reading

Generate PDF Report with Highcharts and wkhtmltopdf

Published Jul 11 2018

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 reading

Api2Pdf joins the RapidApi Platform to make it easy to test and deploy your PDF generation

Published Jul 09 2018

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

IFTTT – Convert a URL to PDF and Email PDF as Attachment

Published Jul 08 2018

This post will provide step by step instructions for converting any web page to a PDF and then emailing that PDF as an attachment using IFTTT (If This Than That). This post assumes you have an account with IFTTT already. Step 1: Sign up for free Create an account on Api2...

Continue reading

IFTTT – Save any Pocket article as PDF and Email it as Attachment

Published Jul 08 2018

This post will provide step by step instructions for converting any article saved on Pocket to a PDF and then emailing that PDF as an attachment using IFTTT (If This Than That). This post assumes you have an account with IFTTT already. Step 1: Sign up for free Create an accou...

Continue reading