PDA

View Full Version : Macro that converts 1000pdf files from folder to jpgs



mihailovici
02-24-2024, 08:38 PM
Hi guys,
I have a lot of pdf files (around 1000) into this folder

C:\MIHAI\DOC\ASIG\DOSARE

I need an Excel 2007 Macro to convert every pdf file into jpg

For example if my first pdf file is named Michael.pdf and it has 4 pages I need to convert it to Michael01.jpg, Michael02.jpg, Michael03.jpg, Michael04.jpg.

Then again the same thing for every pdf.

If you have any suggestion, your help would be greatly appreciated.
Thanks, have a great day!
God Bless!

June7
02-25-2024, 12:33 AM
You now want the opposite of what was developed in other thread http://www.vbaexpress.com/forum/showthread.php?71362-Convert-all-jpg-and-pdf-files-from-folder-into-1-single-pdf-with-same-width

Again, common topic.

Will need to first split up multi-page pdfs then call code for conversion to jpg.

I don't know any way to do the first part without Adobe Acrobat installed. The second part can possibly be done with ImageMagick as well. I found code to do conversion without Acrobat by leveraging PowerPoint (resolution is degraded). But if you have Acrobat, I expect all can be done with Acrobat automation.