Archive for 2018


Best free PrinceXML alternative – Headless Chrome

December 27th, 2018 / by api2pdf /

Intro PrinceXML is a popular library for converting HTML to PDF. It is often touted as the “best” HTML to PDF conversion tool currently on the market. However, it comes with an unbelievably hefty price tag of $3800 for installation on a single server. This is game over for most companies. Free Alternative to PrinceXML […]

Read More

Convert HTML to PDF with Javascript and React

December 19th, 2018 / by api2pdf /

Intro In a previous post, we provided guidance with how to generate PDFs from HTML and web pages with javascript and jquery. In this post, we provide a sample React component to convert HTML to PDFs using Headless Chrome or wkhtmltopdf. Api2Pdf is an HTML to PDF API that allows developers to generate PDFs at […]

Read More

ReportLab Alternative for PDF generation in Python

December 12th, 2018 / by api2pdf /

Intro Click here to start generating PDFs in Python now! Get going in just a few minutes! ReportLab has been around for a very long time and is one of the more popular options for generating PDFs in the Python programming language. According to its website, it receives 50,000 downloads per month and is included […]

Read More

[Solved] Issue rendering UTF-8 or Unicode characters in HTML and PDFs

December 11th, 2018 / by api2pdf /

Intro Api2Pdf is popular all over the world and therefore we have customers who need to generate PDFs in many different languages. One problem that has come up recently is that a customer needed to render characters from their native language: Dutch. Dutch has some special characters that require unicode or UTF-8. For example, these: […]

Read More

Optimizing Azure Functions to avoid the 300 connection limit

December 2nd, 2018 / by api2pdf /

Intro Api2Pdf is a web service for generating PDFs from HTML, URLs, and Offices files. In order to scale to millions of requests, our backend runs on a serverless architecture. Our infrastructure is comprised of three main components: Web App, located at portal.api2pdf.com and built on .NET Core. The portal allows you to pay for […]

Read More

HTML to PDF with Python and wkhtmltopdf or Headless Chrome

November 22nd, 2018 / by api2pdf /

Intro In this article we will cover converting HTML to PDF format with Python with just a few lines of code and the Api2Pdf API. Api2Pdf is an HTML to PDF API built on AWS Lambda that allows you to produce PDFs at massive scale. Api2Pdf offers both wkhtmltopdf and Headless Chrome as options to […]

Read More

Merge PDFs together with C# and .NET Core

November 18th, 2018 / by api2pdf /

Intro In this article we are going to cover how to merge PDFs together with C# and .NET Core with just a few lines of code using the Api2Pdf dotnet client library. Api2Pdf is a REST API that makes it super easy to generate and combine PDFs. You can view the full documentation of the […]

Read More

Convert powerpoint to PDF with Python and LibreOffice

November 17th, 2018 / by api2pdf /

Intro In this article we are going to demonstrate how easy it is to convert a powerpoint file (ppt, pptx) to a PDF file using Python and the Api2Pdf LibreOffice API endpoint. Api2Pdf is a REST API that makes it easy to generate PDF files from HTML, URLs, and Microsoft Office files. Api2Pdf exposes an […]

Read More

Save a Web Page as PDF – WordPress Plugin

November 12th, 2018 / by api2pdf /

Intro Api2Pdf proudly announces the release of a brand new WordPress Plugin – Save Page to PDF. The purpose of the plugin is to make it easy to add a “Print to PDF” button on any page or article of your WordPress site. If you click the button, it will take the current page and […]

Read More

Using custom fonts with wkhtmltopdf and Headless Chrome

November 12th, 2018 / by api2pdf /

Intro Using custom fonts with wkhtmltopdf or Headless Chrome is pretty straight forward, but there are a few caveats. First, it is important to know what fonts Api2Pdf supports out of the box with both endpoints. By default, if you do nothing but go to the home page of Api2Pdf and print the below HTML […]

Read More