How to convert PDF to image of specific size with command line

The command line application EEPDF PDF to Image Converter Command Line allows you to convert PDF to image of specific size.

PDF (Portable Document Format) is able to transfer data electronically while preserving the original texts, images, formats, layouts, etc., thus it’s widely used in documents archiving, distributing and sharing. But, it can’t be directly opened by many common applications. In order to make PDF documents more accessible to others, converting PDF documents to image will be a good choice.

EEPDF PDF to Image Converter Command Line is a powerful command line application that can convert PDF format to JPG, PNG, BMP, GIF, TIF, EMF, TGA, PCX, PBM, PNM, RAS, etc. What’s more, it allows you to customize image size.

With some simple steps, you can successfully convert a PDF document to image of specific size.

Step 1. Download and unzip

First, please free download the package of EEPDF PDF to Image Converter Command Line. Then, please extract the package to a folder in computer disk. In the extracted package, you can find an executable file named pdf2img.exe which is the called program in the MS-DOS command prompt window.

Step 2. Input commands

At first, you need to open the MS-DOS command prompt window so that you can input commands. In the opened MS-DOS command prompt window, please follow the command line template below to input your commands.

pdf2img [options] <PDF-file> <img-file>


  • pdf2img.exe: call the program. (Please input the full path of the called program pdf2img.exe.)
  • [options]: set parameters.
  • <PDF-file>: specify the path of the input PDF file.
  • <img-file >: specify the path of the output image.

In order to set image size, you can use the following options: -w <int> which is used to set image width and -h <int>which is used to set image height.

For example,

D:\eepdf_pdf2image_cmd\pdf2img.exe –w 600 –h 400 D:\ balet.pdf E:\ balet.png

This example is to convert a PDF file named balet.pdf to us.png image.

After inputting the commands, please press Enter on your keyboard to run the commands.

Seconds later, you can get the target image in the specified location.

Please check the conversion effect from the following snapshots.

input PDF file
Input PDF file

output PNG image
Output PNG image

This application can do more than setting image size. To know more usages and options, please read the readme.txt document in the unzipped package.

This is the end of this article and you can enjoy full version of EEPDF PDF to Image Converter Command Line here.

No votes yet.
Please wait...

Related Posts: