I would like to add bookmarks, based on the name of the original file when combining PDFs using Javascript.

I am combining hundreds of original 1-page PDF files in dozens of PDF files. I generated the JavaScript to do this. However, I would like to add bookmarks for some pages, based on the name of the name of the file from this page. Here is a sample of my script combining:

var currDoc = app.openDoc ("C:/report/December 2015 / Insert Plan SD." "") "'PDF');

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / RPM RPM/K001. PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / output / K001 ROCHESTER."}) PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Insert Plan.PDF '});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / RPM/L002 RPE."}) PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / output / L002 BOSTON."}) PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map3.PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map2.PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map1.PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Comp Brand/10_KReport1.PDF"});

currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Comp Brand/10_LReport1.PDF"});

currDoc.saveAs ({cPath: "C:/report/December 2015 / Final / 10 2015 Review.PDF area"});

currDoc.closeDoc (true);

Take a look on the Bookmark object and methods associated with it.

Tags: Acrobat

Similar Questions

Maybe you are looking for