[EMAIL PROTECTED] wrote: > Thanks Bruno, > > What I am trying to do is programmatically go page by page through an > existing PDF and remove all pages which consist of only a white canvas with > no text, images, or hidden text. Are there any examples I could check out > to do this or do you know of any docs that I could reference?
Read the document with PdfReader, then loop over all the pages, and get the content with getPageContent(int pagenumber); This is a byte[] containing the PDF syntax of the page. Inspect this content to see if the page can be removed. Page removal is easy. It can be done with PdfCopy or PdfStamper. I wasn't able to get any real work done today because of all the questions that were sent to the mailing list and to me privately, so you will have to understand that I am getting tired of giving support for free. best regards, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
