These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Deleting Pages

lawrence_antony
Registered: Sep 8 2009
Posts: 28
Answered

I used PDDoc.DeletePages() method to delete the page by physical page Number.
I want to know how to delete a page using logical page Number.

My Product Information:
Acrobat Standard 9.1.3, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
The method only deletes by the zero based page number. So you could write your own function to delete pages that subtracts one from the page numbers and then use the modified numbers to programmatically delete the pages.

You can not necessarily used the displayed page numbers in Acrobat/Reader as the Navigation Toolbar page label can be changed in so many ways and one does not have access to this in scripting.

George Kaiser