You don't need any special tools to trim your book for running debug experiments on your action code.
Open a command window (
shift + F3):
- Move your certificate page to be the page number of the new last page of your book.
- Delete all of the pages that follow the certificate page.
- Here is the script to enter into the command window to accomplish the above.
(NOTE: this script example assumes your certificate page is going to be page 10. Modify it to suit your purpose.)
pageNumber of page "certificate" = 10 --enter whatever page number you want last page to be
go to page "certificate"
while (last page of this book <> page "certificate")
get deleteObject(last page of this book) --keep removing pages until certificate is the last page
end while
RESULT: Your book is now only 10 pages long and the certificate page is still the last page.
Of course, if you need to remove other pages, then rebuild the logic a bit or add to the script as needed.
I generally keep a library of command window snippets like this to quickly modify books at author level. The command window is a powerful tool that saves a lot of authoring time! My library of snippets is simply a txt file that I can cut and paste from as needed.