bpatton_psr
asked on
How to merge multiple pdfs based on file names?
Hi,
I have about 10 folders containing some pdfs that I need to merge based on the file name. The naming convention is like "acctnumber_12345.pdf" and each acctnumber has multiple pdfs associated with it. I want to merge everything for each account under a new name convention "acctnumber.pdf". Is there a script or any easy way to get it done? FYI, I'm using a Windows OS and I have thousands of files.
I have about 10 folders containing some pdfs that I need to merge based on the file name. The naming convention is like "acctnumber_12345.pdf" and each acctnumber has multiple pdfs associated with it. I want to merge everything for each account under a new name convention "acctnumber.pdf". Is there a script or any easy way to get it done? FYI, I'm using a Windows OS and I have thousands of files.
Hi, using PDFTK:
http://www.pdflabs.com/docs/pdftk-cli-examples/
you can run
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
to concatenate 1.pdf, 2.pdf, and 3.pdf as 123.pdf
To help you script this further, I'll need more details on what your files are. Please provide some exact file names before and after, and I'll knock up a script.
Regards,
Rob.
http://www.pdflabs.com/docs/pdftk-cli-examples/
you can run
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
to concatenate 1.pdf, 2.pdf, and 3.pdf as 123.pdf
To help you script this further, I'll need more details on what your files are. Please provide some exact file names before and after, and I'll knock up a script.
Regards,
Rob.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Was looking for a batch script. We had thousands of PDFs and we found this script online. Modified it a little bit to our solution. Worked! Thanks to all for suggestions though.
bpatton_psr
I am having the same issue but I have no experience creating or using scripts.
Any advice how to accomplish this or do you perhaps know of a program that does this?
-kitmaddox@yahoo.com
I am having the same issue but I have no experience creating or using scripts.
Any advice how to accomplish this or do you perhaps know of a program that does this?
-kitmaddox@yahoo.com
The first question is... Do you own a copy of Acrobat Pro?
If the answer is yes then you have an easy solution, well easy but a little time consuming.
You can open one of the files in Acrobat Pro and then Select Document\Insert Pages\From File (Shift + Ctrl + I) From this window you can multi select the files you want to merge, on the next screen select where in the document you want them to go (normally at the end).
Job Done
Your other option is to go for something like activePDF http://www.activepdf.com/products/
Their script to merge files
http://www.activepdf.com/support/knowledgebase/viewKb.cfm?id=10678&tk=sp
Jawa29