How can I get the color at a specific coordinate in a pdf file

How can I get the color at a specific coordinate in a pdf file.? In addition, I do not know the coordinates. I only have a pdf file. I need to find out the coordinate and its color. I work in java and package < com.lowagie.text.pdf. Please help me.

+3
source share
2 answers

I got what I was looking for.

Code here

Export PDF pages to a series of images in Java

+1
source

If you know the page, take a picture of the page:

PdfImportedPage page = writer.getImportedPage (reader, pageNum); // get the PDF page Image img = Image.getInstance (page); // wrap it in an image object

.

+2

Source: https://habr.com/ru/post/1790443/


All Articles