Convert PDF files to TIFF in Python using PDF.co Web API

3 Minutes Read

In this demonstration, we will convert PDF files to TIFF in Python. We will use the /v1/pdf/convert/to/tiff endpoint. Below is the sample source PDF and the converted images.

Sample Source PDF
Sample Source PDF
Converted Images
Converted Images

Step 1: Make Folder for Files

First, add your files to the Python program folder. You can download our sample file and Python code.

Step 2: Requests Module Installation

Next, install the requests module. Then, type python -m pip install requests in your command line and press enter to install the pip requests.

Step 3: Add API Key

Then, open the Python sample code and add the PDF.co API Key in line 6. You can get the API Key in your PDF.co dashboard.

PDF.co API Key

Step 4: Source PDF and Destination

In lines 12 and 14, enter your source PDF file and type the TIFF file name output.

Source PDF and Destination

Step 5: Run Program

Now, let’s run the Python program, and you will see the result in your folder.

Run Program

In this tutorial, you learned how to convert PDF files to TIFF in Python. You learned how to use PDF Extractor Web API to convert PDF to Images. You also learned how to install the requests module.

Video Guide

Related Tutorials

See Related Tutorials