Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting pages of a pdf file

Status
Not open for further replies.

jdl0523

Technical User
Jun 19, 2003
5
US
Is it possible to programmatically delete pages in a multiple page pdf file if a specific text string appears on the page? If so, how hard is this and what approach should I take?
 
Programmatically through the Acrobat API? Yes, it's difficult. In particular, the "search" method performs a search, but returns nothing in the way of usable results to the programmer. For example, you don't know how many results, on what pages the results were found, or even when the search is complete. Real handy, huh?

I have done this, but in a very round-about way, using Search and ExecuteMenuItem, and had to prompt the user at least once. Acrobat's API is horrible, I would highly suggest working either upstream with the source documents, or with a robust PDF toolkit such as activePDF Toolkit.



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top