I need to programmatically calculate the percentage of Pantone colors at a particular point in the PDF. I've been looking for a solution for the last three months, but I was unable to put this feature into practice, and now I'm running out of time. I'm asking other developers for help. I'm using pdf.js to render and viewer.js to view the pdf.
i have tried few solutions but i am able to get percentage of one color if mentioned but not multiple colors if existed at that particular position.