-
1. Re: Extract the page numbers into a csv file
Bernd Alheit Sep 2, 2015 7:42 AM (in response to dantescristo)You can use the method getPageLabel.
-
2. Re: Extract the page numbers into a csv file
dantescristo Sep 2, 2015 12:50 PM (in response to Bernd Alheit)I am not sure how to build it, and save the data in a csv file, as I never used JavaScript for Adobe. I just know that I have to build a function, and also assign this function to a shortcut that would appear in the Document tab. I am a newbie in JavaScript. Any idea how to start building the code? Thanks!
-
3. Re: Extract the page numbers into a csv file
Bernd Alheit Sep 2, 2015 1:24 PM (in response to dantescristo)You can start here:
-
4. Re: Extract the page numbers into a csv file
dantescristo Sep 18, 2015 6:27 AM (in response to Bernd Alheit)I found the code that extracts the page labels, however I am not sure how to write the results to a .csv file, not the console. Also, is there a way to add a menu item with the script?
Listed the code here:
var labels = this.getPageLabel(0);
for (var i=1; i<this.numPages; i++)
labels += ", " + this.getPageLabel(i);
console.println(labels);
-
5. Re: Extract the page numbers into a csv file
Bernd Alheit Sep 18, 2015 7:43 AM (in response to dantescristo)In Acrobat you can create a Report document and export it as Excel file.