Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Delete all pages except currently viewed?? Acrobat Javascript

$
0
0
Hello All,

I need to delete all pages in a PDF except the one that is currently being viewed. I thought I had it with this:

var keepPage=this.pageNum
this.deletePages({nStart: keepPage+1, nEnd: this.numPages -1});
var keepPage=this.pageNum
this.deletePages({nEnd: keepPage -1});

But this only works if you are on a page other than the last page.

I appreciate any help.

Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>