How to find the background color of the text using itextsharp

南笙酒味 提交于 2019-12-23 04:52:35

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!