问题
I am able to find the foreground color of the text using itxtsharp (renderInfo.GetFillColor()), is it possible to find the background color of the text using itextsharp.i.e. Some of the text in the PDF file are inside the color box, i need to skip the text that are present inside the color box, is it possible. Please advice on this. Thanks in advance.
//Used to get the foreground color of the text
BaseColor curColor = new BaseColor(0f, 0f, 0f);
if (renderInfo.GetFillColor() != null)
curColor = renderInfo.GetFillColor();
来源:https://stackoverflow.com/questions/19762372/how-to-find-the-background-color-of-the-text-using-itextsharp