Aspose.Pdf.Page.IsBlank function returns false with blank pages in the attached PDF file

Aspose.Pdf.Page.IsBlank function fails to determine blank pages in the attached PDF file.
Although Pages 3 and 4 are blank, IsBlank function returns false.

ThanksPdf sample with blank pages.pdf (775.3 KB)

@ibrahimahmed1985

If you open your PDF document in Adobe Reader and click on the pages to select content, you will notice that a blank image is present on both 3rd and 4th pages of the PDF document. That is the reason API is not recognizing them as blank pages.

Hi @asad.ali

That PDF is converted by Aspose.PDF from a tiff image captured from the scanner directly.
On the other side, this is another PDF sample that contains blank pages and those blank pages can be detected by Aspos.PDF.Page.IsBlank function and at the same time if you open it with Adobe Acrobat Reader , select the blank page(s) content and right click, you will see the ‘Copy Image’ option. So I don’t think that this is the issue here.

BlankPageTest.pdf (673.5 KB)

@ibrahimahmed1985

Can you please also share the sample TIFF image along with the code snippet that you are using to convert it into PDF? We will test more and share our feedback with you.