Is there any way, in java, to automatically detect the colors of a certain area in the PDF and either translate them to RGB or compare them to the legend and then get the color?
-
Do you want the color with which some text or some form in that area is originally drawn? Or do you want the color eventually being visible there?mkl– mkl2021-04-02 12:23:17 +00:00Commented Apr 2, 2021 at 12:23
-
What is the "the legend"? Also, it might help you get a good answer if you clarified why detecting the color is important.Ryan– Ryan2021-04-02 17:14:55 +00:00Commented Apr 2, 2021 at 17:14
Add a comment
|
1 Answer
The way I know is to Convert the pdf into a picture and then get the pixel array of the image You can take the Hint from Java Color Description or from Get Pixel array of image