Archive for February, 2019


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

Generate PDF with Python Flask or Django

February 17th, 2019 / by api2pdf /

If you are building a web application in Python with either of the two most popular frameworks – Flask or Django, there’s a good chance you will need to support functionality for PDF generation. Convert HTML to PDF with Flask or Django To generate PDFs, we are going to use API2PDF. API2PDF is a REST […]

Read More

[Solved] Error – Couldn’t connect to server localhost

February 12th, 2019 / by api2pdf /

Fixing the Issue localhost is your development machine. If you send a url to a PDF to API2PDF that is localhost, there is nothing API2PDF can do. Localhost is your own machine, and API2PDF lives in the cloud on AWS Lambda, so it has no access to your file. That is why when you send […]

Read More

[Solved] Headless Chrome options ignoring landscape mode when printing to pdf

February 9th, 2019 / by api2pdf /

We ran into a tough debugging issue this morning when a customer wrote in saying that our .NET client library was not generating his PDFs in ‘landscape’ mode while using Headless Chrome. The customer provided all of their C# code and I went to work trying to figure out what’s going on. He was using […]

Read More

Generate PDFs from Salesforce Apex

February 5th, 2019 / by api2pdf /

We released the full code and documentation on GitHub.  See full details on how to generate PDFs using Salesforce. Many developers moving to Salesforce are used to the power of .NET or Java and have their favorite way of generating PDFs from HTML.  Api2Pdf is a wrapper for wkhtmltopdf, Headless Chrome, and LibreOffice and proudly runs […]

Read More

[Solved] Accessing a secure page with a URL endpoint

February 4th, 2019 / by api2pdf /

We sometimes receive support requests asking how API2PDF can access a secure a page on your website when using the wkhtmltopdf/url or chrome/url endpoints as shown below. A secure page means that it is behind some kind of login wall. When using a URL to PDF endpoint, API2PDF will take your URL that you provided, […]

Read More