<

Xpdf - PDFtoPNG - Command Line Utility to Convert a Multi-page PDF File into Separate PNG Files

Posted on
11,930 Points
331 Views
1 Endorsement
Last Modified:
Experience Level: Intermediate
5:04
Joe Winograd, Fellow&MVE
50+ years in computer industry. Everything from development to sales. CIO. Document imaging. EE MVE 2015, EE MVE 2016, EE FELLOW 2017.
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a command line interface, making it suitable for use in batch files, programs, and scripts — any place where a command line call can be made.

Video Steps

1. Download the software


You may have already downloaded and unzipped the Xpdf tools while watching the first video in the Xpdf series, but if you haven't, then visit the Xpdf website. Click the Download link and then click the pre-compiled Windows binary ZIP archive to download the utilities for Windows.

Step1

2. Locate the documentation folder for the Xpdf utilities


Go to the folder where you unzipped the downloaded ZIP file and find the doc folder.

Step2

3. Read the documentation for the PDFtoPNG tool


Go into the doc folder and find the plain text file called pdftopng.txt.

Open it with any text editor, such as Notepad, and read it. This is the documentation for the PDFtoPNG tool.

Step3

4. Set up a test folder


Create a test folder.

Copy pdftopng.exe from the unzipped bin32 folder into your test folder.

Copy a sample PDF file into your test folder. Of course, it will work fine with a one-page PDF file, but it is more instructive to test it with a multi-page PDF.

Step4

5. Set up a command prompt for testing


Open a command prompt window.

Navigate to your test folder.

Issue a DIR command in the command prompt to be sure that only two files are in it - the PDFtoPNG executable and the sample PDF file.

Step5

6. Run the PDFtoPNG utility


Issue the following command in the command prompt:

pdftopng.exe test.pdf rootimage

Step6

7. Verify that the PNG files were created


Issue a DIR command in the command prompt to verify that the PNG files were created.

Step7

8. Verify that the PNG files can be opened


Open the PNG files in whatever image viewer that you prefer to verify that they are proper PNG files.

Step8
If you find this video to be helpful, please click the thumbs-up icon below. Thank you for watching!
Price Your IT Services for Profit
Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

1
  • 2
3 Comments
 

Administrative Comment

by:Kyle Santos
Congratulations, Joe!  Your video has been Accepted.  Great job. =)
1
LVL 63

Author Comment

by:Joe Winograd, Fellow&MVE
Kyle,
Thanks for the fast publishing and the compliment — both appreciated! Regards, Joe
1
LVL 63

Author Comment

by:Joe Winograd, Fellow&MVE
Hi Tia Henderson,
I'm sure that you meant to endorse this video (rather than Kyle's comment that it was Accepted and my comment thanking Kyle). To endorse the video, you must click the thumbs-up icon that is right underneath the video steps (before this Comments section begins). Thanks, Joe
0

Featured Post

Price Your IT Services for Profit

Managed service contracts are great - when they're making you money. Yes, you’re getting paid monthly, but is it actually profitable? Learn to calculate your hourly overhead burden so you can master your IT services pricing strategy.

Suggested Videos

Title Views Activity
Improve Phase - 4.1 Simple Linear Regression 56
Progress Part 1 45
Starting up a Project Part 1 169
Loops Section Overview 62
Are you among those users who are facing Adobe Reader highlighting problems? Then don’t worry here we have described the reliable solution that can solve “highlight function not working in Adobe Reader DC” problem easily. So, read the blog and get y…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in 2013 or 2016. Now that Office 2019 is here, the bad news is that it is still missing, but the good news is that the same no-cost method that works to install it…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month