These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

JavaScript to append same file names problem

Registered: Jul 11 2011
Posts: 1
Answered

I created a Javascript to extract single PDFs from a one large PDF and save those single PDFs as Serial Numbers: "XXXX" (which are in those PDFs).
 
But my problem is some serial numbers are same. so I want to append the same file name PDFs together (rather than overwriting)?
 
I would apprietiate any help with solving this issue.
Thank you,

My Product Information:
Acrobat Pro 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Accepted Answer
The way to find out if a file already exists is to try to open it (using openDoc) and see if you're successful.
If so, then you can adjust the name of the file you want to save.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com