I\'m trying to extract the color of a rectangle in a PDF with iText. The following is all what the PDF page have:
And this is the page content extracted with iT
To find the color of your rectangle, you may need to browse through the /Annots section of the PDF stream. Here, you are only exploring the /Contents, which doesn't include information such as color for the Rect entities.
I hope it will help :)