Posts Tagged ‘pdf’


Convert HTML to PDF with nodejs / javascript

September 2nd, 2018 / by api2pdf /

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. View the documentation for our Nodejs […]

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

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

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

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

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