The API2PDF blog

Tutorials

Step-by-step guides for generating PDFs, images and documents with API2PDF in Python, PHP, Node, C#, Java, Go, Ruby and more.

Generate PDF with Python Flask or Django

Add PDF generation to a Flask or Django app with the api2pdf Python package: render your template to HTML, convert it with Head...

Convert HTML to PDF with Javascript and React

A sample React component that converts HTML to PDF with Headless Chrome or wkhtmltopdf by calling the Api2Pdf REST API from the...

HTML to PDF with Python and wkhtmltopdf or Headless Chrome

Convert HTML and URLs to PDF from Python with the api2pdf package. Choose wkhtmltopdf or Headless Chrome, pass options, and dow...

Merge PDFs together with C# and .NET Core

Combine several PDFs into one from .NET Core with the Api2Pdf NuGet package: installation, the merge call and the returned file...

Convert powerpoint to PDF with Python and LibreOffice

Convert .ppt and .pptx presentations to PDF from Python using the Api2Pdf LibreOffice endpoint, without installing LibreOffice ...

Using custom fonts with wkhtmltopdf and Headless Chrome

Which fonts are available by default, how to load Google Fonts and custom web fonts with @font-face, and the caveats for each r...

Convert HTML to PDF with C# and .NET Core

Use the Api2Pdf NuGet package to convert HTML and URLs to PDF from .NET Core with Headless Chrome or wkhtmltopdf, plus Office c...

Merge PDFs together with Python on AWS Lambda

Combine multiple PDF files into one with the Api2Pdf Python client: install the package, pass a list of URLs, and get back a me...

Free Bootstrap 4 HTML Template for Displaying Database Records to PDF

A free HTML template for printing application forms, submissions and database records to PDF, ready for Headless Chrome or wkht...

OpenStreetMap + LeafletJS + PDF

Embed an OpenStreetMap tile layer with Leaflet.js in a PDF using Headless Chrome and a javascript delay so the map tiles finish...

Adding a Watermark with WKHTMLTOPDF

Add a DRAFT or CONFIDENTIAL watermark to every page of a wkhtmltopdf PDF using a header HTML page with a fixed-position element...

Convert HTML to PDF with client side javascript and jquery

Generate a PDF straight from the browser with jQuery and the Api2Pdf REST API when a server-side option is not available. Sampl...

Convert HTML to PDF with nodejs / javascript

Install the api2pdf npm package and convert HTML, URLs and Office documents to PDF or merge PDFs from Node.js with Headless Chr...

Page 4 of 5 · 61 posts

Generate your first PDF in minutes

Create an account, grab an API key, and send one POST request. Pay only for what you use.