Get average color from ColorSepration


Any idea on how to get the average color from the color sepration ?

I used the (PDFTron WebViewer Class: DocumentViewer)

it return :


I want to get the average color from this reset , any idea on how to do that please ?

Thank you

1 Like

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:



Thank you for contacting PDFTron Support.

Could you clarify “average color”? For example, what is the expected average color for the screenshot color you attached?

We look forward to hearing from you.

Best Regards,
Jason Hu
Web Development Support Engineer
PDFTron Systems, Inc.