Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merge PDF files based on similar filenames

Status
Not open for further replies.

gazza110

Technical User
Apr 14, 2004
42
0
0
GB
Hello,

Does anybody know a way (perhaps using JavaScript) to merge PDFs together based on their filename?

I have created several PDF files (extracting from a large file) with student timetable on it and named the files with their student ID and page number (some are 2 pages and some are only one page):

012345 - page1.pdf
012345 - page2.pdf
011112 - page1.pdf
022223 - page1.pdf
022223 - page2.pdf

I need to merge the files together based on the filename, i.e.

012345 - page1.pdf
012345 - page2.pdf

MERGED into a single file (based on the first 6 characters of the filename).

There is over a 1000 files therefore would take a long time to do manually.

Any ideas (I am sure this can be done using the JavaScript Console however I am not sure how).

Thanks,
Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top