I’m trying to get the percentages for a spot color from a PDF.
I’ve already read all the discussion in the KB but I haven’t found the answer.
I’ve also tried the method:
Gstate.getColor().get(0)… and 1, 2 ,3 in order to get the color but it returns me the amount of that spot color, not the real percentages.
For example:
You can do this via pdftron.PDF.ColorSpace. For example:
element.GetGState().GetFillColorSpace().ConvertToCmyk(spot_color)