-
How could I select a line of text based off of color? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
My first thought is to use something like |
Beta Was this translation helpful? Give feedback.
-
@rynsp8 if you already have your words, you should be able to access the letters that compose them. The color information is contained at the letter level, not word, nor line (you could think of a word with letters of different colors) |
Beta Was this translation helpful? Give feedback.
-
@rynsp8 in a pdf document, the color is not at letter level itself - correct. The instructions contained in a pdf document are about drawing stuff. So you could have a command that is a 'paint command', and it will paint the current object. But PdfPig is done in a way so that you don't need to read the ISO documentation, and helps you access a lot of elements/information contained in a pdf file. For example it provides you with the letter of the color, but also with the colors of paths (drawings). Another example is that a pdf document has no concept of 'word', 'line' or 'paragraph'. PdfPig does the post processing for you so that's easier for you |
Beta Was this translation helpful? Give feedback.
@rynsp8 it should more less yes, I think you would newd to call
letter.Color.ToRgb()
to get the RGB value.