We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose PDF Blank page detection

Hey all,

I used this document and the IsBlank() method (https://reference.aspose.com/net/pdf/aspose.pdf/page/methods/isblank) on this highest detention sensitivity (0.01).

Test8.pdf (138.1 KB)

It seems to detect this as a blank page when it should considered as non-blank.

How this PDF was created was by adding shapes to a document in Microsoft Word then saving as PDF. Does anyone know how to detect microsoft word added shapes or have a method to recognize the non-white color in this document?

Maybe there is a procedure for checking each pixel to whether it’s color is white?

Thanks!

@nqueue1

Thanks for contacting support.

We have tested the scenario in our environment using following code snippet and noticed that the isBlank property was returning true - whereas the page was not blank.

Document pdfDocument = new Document(dataDir + "Test8.pdf");
bool isBlank = pdfDocument.Pages[1].IsBlank(0.01d);

We have logged an investigation ticket as PDFNET-44272 in our issue tracking system . Our product team will further investigate the logged ticket and as soon as they share their feedback in this regard, we will let you know. Please be patient and spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-44272) have been fixed in Aspose.PDF for .NET 22.11.