0

I am using iText java API for reading a pdf file.

Is it possible to find whether the pdf is contentless using same API?

I wish to write a method which reads a pdf from a specific location and returns whether a pdf is blank or not?

Micer
  • 8,731
  • 3
  • 79
  • 73
Shuja
  • 1
  • 2
  • [This blog post](http://www.rgagnon.com/javadetails/java-detect-and-remove-blank-page-in-pdf.html) looks promising. Have you tried anything yet so we know how far your code is coming along? – Tim Biegeleisen Jun 27 '16 at 11:56
  • I think you can go through this question: http://stackoverflow.com/questions/2464166/how-can-i-remove-blank-page-from-pdf-in-itext – Kruti Patel Jun 27 '16 at 11:57
  • @TimBiegeleisen: I haven't tried a code yet. Also, I find that the API doesn't have a predefined method. Can you help me write that method? – Shuja Jun 27 '16 at 11:58
  • 2
    What do you mean by blank ? A single blank page? No page at all? – Himanshu Tyagi Jun 27 '16 at 12:00
  • @KrutiPatel: Thanks!! This seems to be valuable – Shuja Jun 27 '16 at 12:03
  • @HimanshuTyagi: A single blank page – Shuja Jun 27 '16 at 12:04
  • @Shuja Is a page blank which has text in white on white blank? Or one which has text which then is covered by a white rectangle? Or which has off-screen contents? All those samples appear blank in print but are not contentless. – mkl Jun 28 '16 at 09:12

0 Answers0