0

How to convert PDF to PNG file or JPEG?

Asked 3 years ago (Apr 08, 2021) in the field of Operating Systems by Ranbir

Hi, can I convert PDF files to image format in my Linux terminal environment?


Answers


0
Answered 3 years ago (Apr 09, 2021) by Eldernode Staff

Using the Pdftoppm tool in Linux, you can convert PDF file pages to image formats. To use the Pdftoppm tool, you first need to install it, which is actually part of the poppler/poppler-utils/poppler-tools package. Depending on your Linux distribution, install this package as follows:

On Debian/Ubuntu & Mint:

sudo apt install poppler-utils 

On RHEL/CentOS & Fedora:

sudo dnf install poppler-utils 

On OpenSUSE:

sudo zypper install poppler-tools 

On Arch Linux:

sudo pacman -S poppler 

The whole conversion structure of a pdf file is as follows:

pdftoppm -<image_format> <pdf_filename> <image_name>

In the following example, my file name is Linux_Tutorial.pdf and we will convert it to PNG format using the command as Linux_Tutorial:

pdftoppm -png Linux_For_Beginners.pdf Linux_Tutorial

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day