The API2PDF blog

Blog

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

Convert HTML to Image with PHP

Render HTML to a PNG or JPEG image from PHP with Headless Chrome through the Api2Pdf REST API. A few lines of code, no browser ...

PHP – Convert HTML to Xlsx

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

Convert HTML to Docx with C# / .NET Core

Generate a Microsoft Word document from HTML in .NET Core with the LibreOffice html-to-docx endpoint, without interop or a loca...

Convert HTML to Image with Python

Render HTML to a PNG or JPEG image from Python with Headless Chrome through the Api2Pdf REST API. A few lines of code, no brows...

Python – take a screenshot of a website

Convert any URL to a PNG screenshot from Python with Headless Chrome through the Api2Pdf REST API. Sample code included.

Add bookmarks to PDF with Python

Add a navigable bookmark outline to an existing PDF from Python with the PdfSharp bookmarks endpoint. Sample code included.

Nodejs / Javascript – Convert HTML to Xlsx

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

PHP Tutorial – Convert PDF to HTML

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

Node / Javascript – take a screenshot of a website

Convert any URL to a PNG screenshot from Node.js with Headless Chrome through the Api2Pdf REST API. Sample code included.

Add bookmarks to PDF with Nodejs / Javascript

Add a navigable bookmark outline to an existing PDF from Node.js with the PdfSharp bookmarks endpoint. Sample code included.

Add bookmarks to PDF with PHP

Add a navigable bookmark outline to an existing PDF from PHP with the PdfSharp bookmarks endpoint. Sample code included.

PHP – take a screenshot of a website

Convert any URL to a PNG screenshot from PHP with Headless Chrome through the Api2Pdf REST API. Sample code included.

C# / .NET Tutorial – Convert PDF to HTML

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

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