Skip to main content
Known Participant
August 29, 2025
Answered

Extract pages

  • August 29, 2025
  • 1 reply
  • 230 views

I am using the following javascript to extract a page (in this case page 11):

 

this.extractPages({nStart:10});

 

Since I sometimes will add or delete pages from a large file, I would like to simply extract the current page instead of a specific page number as the page numbers will change.  Or, I may want to extract the current page plus the page after it.  I'm looking for script to accomplish this.  Thanks.

 

Correct answer try67

Try this:

this.extractPages({nStart:this.pageNum, nEnd: this.pageNum+1});

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
August 29, 2025

Try this:

this.extractPages({nStart:this.pageNum, nEnd: this.pageNum+1});

Known Participant
August 30, 2025

Thank you!