Archive for the ‘Research’ Category


[Solved] Bootstrap striped table not printing to PDF

April 13th, 2019 / by api2pdf /

We received a support request from a developer who was using Bootstrap’s CSS and his HTML table was set to “striped” via: <table class=”table table-striped”> …</table> Now the HTML was correct, and when loading it up in a browser, the striped rows, which alternate a background color to make it easier for reading was appearing […]

Read More

[Solved] Troubleshooting rendering issues with HTML to PDF

April 10th, 2019 / by api2pdf /

In this article we will walk you through the best way to figure out why your HTML is not properly rendering as PDF using our API service. Step 1 Open up your favorite text editor like notepad++ or VS Code and save your raw HTML that you’ve been sending to API2PDF and save it as […]

Read More

[Resolved] Bad kerning with wkhtmltopdf rendering of html

April 4th, 2019 / by api2pdf /

Today we received an inquiry about wkhtmltopdf’s poor rendering of HTML to PDF with Google’s Roboto font. Roboto is one of the most popular fonts and so it’s important for this to be resolved. The issue with this rendering problem is known as “kerning” which means that the spacing between the fonts is incorrect. Our […]

Read More

Multi-lingual support for HTML to PDF (wkhtmltopdf / Headless Chrome)

March 25th, 2019 / by api2pdf /

Intro – HTML to PDF with Multiple Languages A frequent question we receive at API2PDF is if it is possible to generate PDFs with foreign languages, or languages that contain special characters in their text. The answer is yes, and it is possible to support these languages in both wkhtmltopdf and Headless Chrome rendering engines. […]

Read More

Web service to convert HTML + CSS to PDF

March 23rd, 2019 / by api2pdf /

Intro API2PDF is a web service for generating PDFs at massive scale. Our mission is to make the experience of generating PDFs for application developers not completely miserable. Our system is designed with extreme scalability in mind and is ready for enterprise use. We are built on a serverless architecture, AWS Lambda, which means we […]

Read More

domPDF Alternative for PHP

March 23rd, 2019 / by api2pdf /

Intro domPDF is an HTML to PDF Converter. At its heart, dompdf is (mostly) a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes. […]

Read More

jsPDF Alternative for PDF Generation

March 14th, 2019 / by api2pdf /

jsPDF is a client side library for javascript that allows you generate PDFs. It is open source and convenient for quick and dirty PDF generation, but unfortunately it lacks some key functionality. Since it is not browser-based, building a PDF with jsPDF can be cumbersome. In most cases, all you are looking to do is […]

Read More

Render Google Map to PDF with Headless Chrome

March 3rd, 2019 / by api2pdf /

If you are reading this article, you are likely having issue getting a Google Map to render properly when printing to PDF with Headless Chrome. The problem stems from Headless Chrome printing the page to PDF too fast — prior to Google Maps being able to display their map. Here at API2PDF, we are often […]

Read More

IronPDF Alternative for PDF Generation in C# and .NET

February 19th, 2019 / by api2pdf /

IronPDF is a C# library for converting HTML to PDF, URLs to PDF, and images to PDFs. Additionally, it supports extracting data and images from existing PDF files. And finally, you can merge, split, and manipulate PDFs as well. It’s built exclusively for C# and .NET developers. IronPDF is similar to iTextSharp, another .NET PDF […]

Read More

[Solved] Error – Couldn’t connect to server

February 12th, 2019 / by api2pdf /

Intro With our service being as cheap as it is, we deal with all sorts of developers. Some are experienced and ask us very complicated questions about our tech stack, while other developers are quite new to programming. We try to help everyone just the same. The issue described in this blog post seems to […]

Read More