Re: [iText-questions] can we detect Blank pages in PDF File or pageswith specific text or pattern

2006-06-08 Thread Mick Collins
rivate int blankPdfsize = 20; public void removeBlankPdfPages(String pdfSourceFile, String pdfDestinationFile, boolean debug) { try { PdfReader r = new PdfReader(pdfSourceFile); RandomAccessFileOrArray raf = new RandomAccessFileOrArray(pdfSourceFile); Document document = new

Re: [iText-questions] can we detect Blank pages in PDF File or pageswith specific text or pattern

2006-06-08 Thread Carsten Hammer
Please keep in mind that pagecontent is optional and can be missing for blank pages. And of course it can be that there is something written in white that only can be seen on pages with a black background. This came up several times on this mailinglist and there is no easy solution. However it