extract current page from acrobat pdf to new page and give it a title of a variable

this.extractPages({nStart:1, "newfile.pdf"});

This line of code above will create a new pdf from page one of the open pdf in Adobe Acrobat Pro.

Can you help change this code so that it will create a new pdf from the current page instead of page1

then instead of naming the file "newfile.pdf" I would like to name it with a variable that already exits on the page.  

 so it would be something like this

this.extractPages({nStart:currentPage, variableName + ".pdf"});

Can you help me with this?
LVL 1
ForLoop5Asked:
Who is Participating?
 
ForLoop5Connect With a Mentor Author Commented:
No one around here huh?
Here is the line of code that took care of this for me

this.extractPages({nStart:i, cPath: PageText + ".pdf"});
0
 
ForLoop5Author Commented:
I think this is something along the lines of what Im looking for.  

this.extractPages({nStart: i,cPath : filename + i + ".pdf"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.