The API2PDF blog

Blog

Release notes, tutorials in every language, troubleshooting guides and engineering notes from the team behind the PDF API.

Nodejs / Javascript Tutorial – Convert PDF to HTML

Extract the text of a PDF as HTML from Node.js with the pdf-to-html endpoint, useful for indexing and search. Sample code.

Convert HTML to Docx with Nodejs / Javascript

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

C# / .NET – Convert HTML to Xlsx

Turn an HTML table into an Excel workbook from C# with the LibreOffice html-to-xlsx endpoint. Sample .NET code included.

Add a Password to a PDF with PHP

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

Python Tutorial – Convert PDF to HTML

Extract the text of a PDF as HTML from Python with the pdf-to-html endpoint, useful for indexing and search. Sample code.

PHP – Generate thumbnail image of PDF or Office file

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

Add a Password to a PDF with Nodejs / Javascript

Add a user and owner password to an existing PDF from Node.js with the PdfSharp password endpoint. A few lines of JavaScript.

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.

Page 4 of 11 · 138 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.