Archive for the ‘Example Uses’ Category


Convert HTML to PDF with client side javascript and jquery

September 2nd, 2018 / by api2pdf /

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 to wkhtmltopdf or […]

Read More

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

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

Free Bootstrap 4 Packing Slip HTML Template

July 28th, 2018 / by api2pdf /

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 is likely your responsibility to write code […]

Read More

Export AnyChart graph to PDF with wkhtmltopdf

July 24th, 2018 / by api2pdf /

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 graph to PDF with wkhtmltopdf. Sample Code The […]

Read More

Generate Custom PDFs from HTML with ScriptCase and Api2Pdf

July 21st, 2018 / by api2pdf / No Comments

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 to generate PDFs out of your stored data. You can […]

Read More

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

July 14th, 2018 / by api2pdf / No Comments

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 to connect different applications together. Think of it as a tool that designs […]

Read More