troubleshooting Question

script to join pdfs

Avatar of E=mc2
E=mc2 asked on
PDFScripting Languages
10 Comments2 Solutions139 ViewsLast Modified:
I am looking for a script I can simply double click on, and it will join 2 pdfs that end with A.pdf and Q.pdf.
For instance in folder c:\files\... I have many files.
for example..

12345A.pdf
12345Q.pdf
75123R.pdf
45212R.pdf
78787.Q.pdf

When is looks in this folder it will take file 12345A.pdf and file 12345Q.pdf and join them to form 12345.pdf
And it will delete 12345A.pdf and 12345Q.pdf

The script needs to look through the list and see if there are 2 same prefixes, however one ending with A.pdf and the other ending with Q.pdf and then join them.

I believe pdftk server will allow for joining however I am not sure if it can get this granular.

Thanks for your help.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros