How to detect color from PDF java

259 Views Asked by At

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?

1

There are 1 best solutions below

0
SudarshanK On

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