1 Reply Latest reply on Oct 23, 2014 1:43 PM by try67

    how can I auto delete certain pages

    alsXI Level 1

      I need to delete some pages in a large PDF file. The headings are unique. For example, If each page of the file contained the name of a country as the heading and a description of that country in the body; I would need to identify certain countries and delete those pages. Thanks, in advance.

        • 1. Re: how can I auto delete certain pages
          try67 MVP & Adobe Community Professional

          That is not a simple task. You would need to loop over the pages, checking their contents word-by-word using the getPageNthWord method until you find what you're after. Then you would delete the page using the deletePages method. Just keep in mind that removing items in an array that you're iterating over can cause problems, so it's better to iterate from the end of it to the start.