Archive for 2021


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

Python Tutorial – Convert PDF to HTML

July 14th, 2021 / by api2pdf /

Intro For those who are python 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

Python – Convert HTML to Xlsx

July 14th, 2021 / by api2pdf /

Intro If you are writing python 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 confusing answers […]

Read More

Convert HTML to Docx with Python

July 14th, 2021 / by api2pdf /

Intro If you are writing python 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 use interop […]

Read More

Python – Generate thumbnail image of PDF or Office file

July 14th, 2021 / by api2pdf /

Intro If you are writing python 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 you ended […]

Read More

Python – 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 python and you have been doing research, […]

Read More

Convert HTML to Image with Python

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 a Password to a PDF with .NET Core / C#

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 c# / .net core developer. Our API will take your .pdf file and return back to you a new .pdf […]

Read More

Add Bookmarks to PDF with C# / .NET Core

July 14th, 2021 / by api2pdf /

Intro If you are working with PDFs as a C# / .NET Core 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 […]

Read More

C# / .NET Tutorial – Convert PDF to HTML

July 14th, 2021 / by api2pdf /

Intro For those who are c# / .net core 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 […]

Read More