Archive for November, 2018


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

The journey of migrating PDF generation to a serverless architecture

November 6th, 2018 / by api2pdf /

Api2Pdf is a REST API that helps application developers generate PDFs at massive scale. It was co-founded by myself, Zack Schwartz, and my partner Kunal Johar. The two of us also run another company called OpenWater. OpenWater’s customers live and die by PDFs. And they are not normal PDFs either. Often times, the PDFs are […]

Read More

Debugging Amazon S3, Lambda, Timeouts, ContentOperationNotPermitted, wkhtmltopdf, and Headless Chrome

November 1st, 2018 / by api2pdf /

Intro You ever run into a bug that is so perplexing you don’t even know where to begin? I’d like to share a story that happened this week. As you may know, Api2Pdf runs on AWS Lambda. AWS Lambda is Amazon’s serverless compute service that lets you scale to countless requests very easily. Our two most […]

Read More