0

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?

2
  • 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? Commented 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. Commented Apr 2, 2021 at 17:14

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.