How to batch convert .pdf to .gif or .jpg in windows?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
vincent90152900

How to batch convert .pdf to .gif or .jpg in windows?

Post by vincent90152900 »

How to batch convert .pdf to .gif or .jpg in windows?
Thank you very much for replying.
andrewadperfect

Re: How to batch convert .pdf to .gif or .jpg in windows?

Post by andrewadperfect »

Write a script to pull a list of the filenames you want, then execute a convert command on each of them.

There might also be some way to do a command-line command that would do them all at once.

Do you have programming experience?
Do you have Perl installed?
Ryland

Re: How to batch convert .pdf to .gif or .jpg in windows?

Post by Ryland »

Try this:
Open a Command Prompt. Change directories to the folder where your PDFs are; for example, if your PDFs are in "C:\My Documents\My eBooks", type in:

cd "C:\My Documents\My eBooks\"

Then type:

dir /on /b *.pdf > pdflist.txt

That will dump a list of PDF files into a text file called "pdflist.txt". Open list.txt in Notepad and add your ImageMagick commands to each line, save it, and rename it to "pdflist.bat". Then go back to your Command Prompt and type "pdflist" to run the batch file you just created.
vincent90152900

Re: How to batch convert .pdf to .gif or .jpg in windows?

Post by vincent90152900 »

It is truely helpful.
Many thanks for your replying.
Thank you very much.
Post Reply