Javascript for bookmarks
I ran into a problem-can someone please help me?
i'm trying to write a javascript for bookmark.
my desire outcom would be:
1- extract the desire pages when clicked on the bookmark
2. make no changes to my original doc.
here is my code:
var pageNumbers = [0,1,20];
var newDoc = this.extractPages({
nStart: pageNumbers[0],
nEnd: pageNumbers[pageNumbers.length - 1]
});
// Save the new document (optional)
newDoc.saveAs("/C/Users/YourUserName/Documents/ExtractedPages.pdf");
// Close the new document (optional, if you don't want to leave it open)
newDoc.closeDoc();
the expected outcome is to extract and shows pages 1,2 and 21
but the issue is, it shows pages 1 to 21, i mean all the pages.
can you please correct my code inorder to shows only the 3 pages i asked the code.
thanks.
