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

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

[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

API2PDF and HIPAA Compliance for PDF Generation

January 31st, 2019 / by api2pdf /

Intro HIPAA is a US law that governs data privacy and security of confidential medical patient records. Breach of HIPAA could yield immense fines and punishment. It is of utmost seriousness and organizations go to great lengths to ensure they are HIPAA compliant. We recognize that medical technology relies on PDF generation, and we receive […]

Read More

Api2Pdf Feature Announcement: Delete PDFs on Command!

January 26th, 2019 / by api2pdf /

Until now, API2PDF only stored your PDF for 24 hours and then the PDF will delete itself. This is great for most customers. However, by far, our most requested feature is the ability to delete the PDF right away. This is important for customers who have very high security needs around their PDFs. We are […]

Read More

[Solved] Access denied | used Cloudflare to restrict access

January 23rd, 2019 / by api2pdf /

This post is for individuals who are trying to connect to API2PDF via code. Depending on how you are connecting to API2PDF, or any service that is behind Cloudflare really, you might find that you are getting an error like so: Access denied | used Cloudflare to restrict access. The owner of this website ( […]

Read More

ActivePDF Alternative for PDF Generation

January 19th, 2019 / by api2pdf /

Intro ActivePDF is a popular PDF manipulation product for .NET developers. They offer a suite of products, which among them, allow you to manipulate / edit existing PDFs, generate new PDFs, convert HTML to PDFs, extract data out of existing PDFs, compression, and converting PDFs to images just to name a few. It’s a powerful […]

Read More

Aspose Alternative to PDF Generation

January 19th, 2019 / by api2pdf /

Intro Aspose PDF is a popular product for PDF creation and manipulation. Among the features it boasts include extracting text from PDFs, modifying the content of PDFs, and converting PDFs to any number of file formats. Add or remove watermarks, populate form field data, add headings and tables of contents. The list goes on. All […]

Read More