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.

Convert HTML to Docx with Python

Generate a Microsoft Word document from HTML in Python with the LibreOffice html-to-docx endpoint, without installing LibreOffice.

Add a Password to a PDF with .NET Core / C#

Add a user and owner password to an existing PDF from C# with the PdfSharp password endpoint. A few lines of .NET code.

Python – Generate thumbnail image of PDF or Office file

Create an image preview of a PDF, Word, Excel or PowerPoint file from Python with the /libreoffice/thumbnail endpoint. Sample c...

Node / Javascript – Generate thumbnail image of PDF or Office file

Create an image preview of a PDF, Word, Excel or PowerPoint file from Node.js with the /libreoffice/thumbnail endpoint. Sample ...

Add Bookmarks to PDF with C# / .NET Core

Add a navigable bookmark outline to an existing PDF from .NET Core with the PdfSharp bookmarks endpoint. Sample C# code included.

C# / .NET tutorial – Take a screenshot of a website

Convert any URL to a PNG screenshot from C# and .NET Core with Headless Chrome through the Api2Pdf REST API. Sample code included.

C# / .NET Core – Generate thumbnail image of PDF or Office file

Create an image preview of a PDF, Word, Excel or PowerPoint file from .NET Core with the /libreoffice/thumbnail endpoint. Sampl...

Convert HTML to Image with C# / .NET Core

Render HTML to a PNG or JPEG image from .NET Core with Headless Chrome through the Api2Pdf REST API. A few lines of C# and no b...

Convert HTML to PDF with javascript and AngularJS

Generate PDFs from an AngularJS app with Headless Chrome or wkhtmltopdf through the Api2Pdf REST API. Sample controller code in...

Convert HTML to PDF with javascript and VueJs

Convert HTML to PDF from a Vue.js application with Headless Chrome or wkhtmltopdf by calling the Api2Pdf REST API. Sample compo...

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

Generate PDFs in any language with wkhtmltopdf or Headless Chrome: UTF-8, right-to-left text and the fonts that cover CJK, Arab...

Generate Barcodes and QR codes with Javascript and jQuery (ZXING)

Generate QR codes and barcodes from client-side JavaScript or jQuery by calling the ZXING endpoint. Formats, sample code and an...

Render Google Map to PDF with Headless Chrome

Google Maps prints blank because Chrome prints before the map loads. Use the delay option (or a waitFor) so the map tiles rende...

Page 3 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.