Archive for the ‘Example Uses’ Category


Add a Password to a PDF with Nodejs / Javascript

July 14th, 2021 / by api2pdf /

Intro API2PDF is a REST API that provides utilities for manipulating PDFs and other files. You landed here because you just want a simple and reliable way to add passwords to PDF files as a nodejs developer. Our API will take your .pdf file and return back to you a new .pdf file with the […]

Read More

Add bookmarks to PDF with Nodejs / Javascript

July 14th, 2021 / by api2pdf /

Intro If you are working with PDFs as a nodejs developer, you know the pain associated with working with them. In this post we will cover how to conveniently add bookmarks to a PDF using our REST API in just a few lines of code. Our API will take your .pdf file and return back […]

Read More

Nodejs / Javascript Tutorial – Convert PDF to HTML

July 14th, 2021 / by api2pdf /

Intro For those who are nodejs developers, you might have a niche requirement to convert a PDF into HTML, or extract text content from a PDF for indexing purposes. Here at API2PDF, we have a PDF to HTML endpoint that does a best effort to extract the text from a PDF and output an HTML […]

Read More

Nodejs / Javascript – Convert HTML to Xlsx

July 14th, 2021 / by api2pdf /

Intro If you are writing nodejs / javascript code, you might be tasked with the strange requirement of converting HTML to a Microsoft Excel (xlsx) file. After some research, you discover that this is not as trivial as you hoped it would be. You might have ended up on stackoverflow seeing old, outdated libraries or […]

Read More

Convert HTML to Docx with Nodejs / Javascript

July 14th, 2021 / by api2pdf /

Intro If you are writing nodejs / javascript code, you might be tasked with generating a Microsoft Word (Docx) file. After some research, you discover that this is not as trivial as you hoped it would be. You might have ended up on stackoverflow seeing old, outdated libraries or confusing answers that ask you to […]

Read More

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

July 14th, 2021 / by api2pdf /

Intro If you are writing node / javascript code, you might be tasked with generating an image preview or thumbnail image of a PDF or Microsoft Office file like Word, Powerpoint, Excel, or even email files. If you ended up on this article you probably have been doing research for hours and getting nowhere. Maybe […]

Read More

Node / Javascript – take a screenshot of a website

July 14th, 2021 / by api2pdf /

Intro You might need to convert a URL to an image, URL to PNG, or automatically take a screenshot of a website for various reasons. Maybe you are crawling websites and would like an image preview of all of them for a database. In either case, if you’re a nodejs developer and you have been […]

Read More

Convert HTML to Image with Node / Javascript

July 14th, 2021 / by api2pdf /

Intro You might need to convert HTML to an image or HTML to png format for various reasons. Perhaps you are generating a snapshot or image preview of an HTML template you designed as part of your application. Maybe you are crawling websites and would like an image preview of all of them for a […]

Read More

Add Passwords to PDFs with Python

July 14th, 2021 / by api2pdf /

Intro API2PDF is a REST API that provides utilities for manipulating PDFs and other files. You landed here because you just want a simple and reliable way to add passwords to PDF files as a python developer. Our API will take your .pdf file and return back to you a new .pdf file with the […]

Read More

Add bookmarks to PDF with Python

July 14th, 2021 / by api2pdf /

Intro If you are working with PDFs as a Python developer, you know the pain associated with working with them. In this post we will cover how to conveniently add bookmarks to a PDF using our REST API in just a few lines of code. Our API will take your .pdf file and return back […]

Read More