fonts - itextsharp color picker for a area -


i needed insert text (a id) in location on pdf file.this task simple enough i'm running in issue when there color under font location.

i need test see color(if any) under defined area. determine if font color should black or white.

i found great routine here (on stackoverflow). determine color use based on color send it. hoping see if there anyway find information out using itextsharp.

any great!

the short answer no. color human eye perceive @ specific x,y coordinate falls under realm of pdf renderer itext not.

if use ghostscript convert pdf image such png or jpeg , load system.drawing.bitmap object , call getpixel


Comments