Check if part of the page is empty

Dears,

We are looking for a way to recognize if part of the PDF document is blank (in Java). If yes, then it is good, if not then we should place a warning for our app User as it is “reserved” space for further usage.
We know that there is a method for checking if whole page is blank but it does not solve our issue as the page in our case has always some content and we need to just check if one area of this page is blank. And by blank we understand that there is no content for printing so no text, no background, no pictures and no graphics (those elements cannot be in the restricted area and we have to check if it is true).
Do you have any solution how it can be done within Aspose for PDF library?

Kind regards,
Piotr

@Piotr875

We need to investigate this feature further. Can you please share a sample PDF with us? We will log an investigation ticket in our issue tracking system and share the ID with you.

Dear Asad,
Please find example file - we would like to validate if the grey field is for sure empty. For this particular file the validation should say that the area is not blank as it contains grey rectangle. The validation would differentiate files which contain anything in the bottom left corner from the files that has this area blank - only “blanks” are “valid” to us. There would be also other different areas to be validated in the future (different areas in various positions on the documents). Please investigate the rectangles for a time being but would it be also possible to have different are shapes like circle or triangle?
Kind regards,
PiotrTest Document with grey field.pdf (347.7 KB)

@Piotr875

An investigation ticket as PDFNET-53225 has been logged in our issue tracking system for the sake of further analysis. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.