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

Free Support Forum - aspose.com

PDF.Net Blank page check

When we are getting an exception “Arguments should lies in interval [0, 1]” when checking for blank pages for attached document

Document doc = new Document(FileIn);
foreach (var page in doc.Pages)
{
if (page.IsBlank(0.01d))
{
Console.WriteLine(page.Number);
}
}

Input.zip (202.3 KB)

Please help me out.

@crshekharam

We were able to reproduce the issue in our environment while using Aspose.PDF for .NET 20.12. Hence, we have logged it as PDFNET-49208 in our issue tracking system. 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.

@crshekharam

We have investigated the ticket and found that if entered RGB values are invalid (out of range 0.0…1.0), the ArgumentOutOfRange exception is thrown.