Print Page | Close Window

JPG to PDF batch conversion with subfolders

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
Printed Date: 21 Jul 2019 at 9:43am
Software Version: Web Wiz Forums 11.10 -

Topic: JPG to PDF batch conversion with subfolders
Posted By: pickman
Subject: JPG to PDF batch conversion with subfolders
Date Posted: 03 Oct 2013 at 6:05pm
Hi gurus. I'm having trouble wrapping my head around a script and need some help.
I have a directory with about 400 subfolders in it. In each of those subfolders are 4 to 5 PDF files and 1 JPG. I want to make a script to go into those subfolders, select the JPG, then convert it and save it as PDF with the same name in the same folder. There's got to be an easier way to do this as a batch than going in and doing it manually to each file. Any help would be greatly appreciated, and I'll sacrifice a slice of Dominos to the Java Gods in your honor.

Awake, arise, or be forever fallen!

Posted By: try67
Date Posted: 03 Oct 2013 at 8:31pm
In Acrobat Pro, just create an Action (Tools - Action Wizard) with a Save command and run it on the folders... It will convert the JPG files to PDF, and just re-save the PDF files without changing them.

- Acrobat Expert - Contact me personally at
Check out my custom-made scripts website:

Posted By: pickman
Date Posted: 03 Oct 2013 at 8:54pm
Alas, it does this with all of the files present including 3 excel spreadsheets I don't want it to touch.

Awake, arise, or be forever fallen!

Posted By: gkaiseril
Date Posted: 31 Aug 2016 at 6:24pm
Not only can you select folders, you can also select specific files.

You could also delete the PDFs you do not want.

Posted By: Norman Ryan
Date Posted: 26 Apr 2017 at 12:14pm
hmm, sounds like a lot of work. I would try with this online jpg to pdf converter - , but I'm not sure it will work for you.

Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 -
Copyright ©2001-2017 Web Wiz Ltd. -