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

Free Support Forum - aspose.com

Detect blank pages using Aspose.PDF for .NET - IsBlank page flag is not set to true when the pdf has a blank page

1 blank page doc.pdf (808.3 KB)

Please see the attached pdf file. It has a blank page but IsBlank property is not working ? can you please test on your end and track the issue ?


We were able to replicate the issue in our environment using Aspose.PDF for .NET 20.6 and following code snippet:

string inputFileName = dataDir + @"1 blank page doc.pdf";
Document inputDoc = new Document(inputFileName);
// it returns false
bool isBlank = inputDoc.Pages[6].IsBlank(0.01d);

We have logged this issue as PDFNET-48362 in our issue tracking system for the sake of correction. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.