Image content of pdf are appearing as faded while viewing the content

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.7.4

Detailed description of issue
I have a pdf document that has png image as content and a watermark.
When I view the pdf using the PDF.js Express viewer, the colors of image looks faded(refer to the left section of the attached image). However, when I open the same content in the browser’s built-in viewer, the colors appear more vibrant(refer to right section of the attached image).

Expected behaviour
Content should not be faded

Does your issue happen with every document, or just one?
{Answer here}

Link to document
DocumentWithIssue.pdf (310.0 KB)

Code snippet
{Provide a relevant code snippet}

Hello Saurav,
Thank you for contacting PDFJS forums.

Comparing the provided document with other Viewers like Adobe, I can confirm that the color saturation is expected. Please see the attached image.

best regards,
Kevin

Thank you for your response. Is there any way to enhance the color saturation while loading the document? As shown in the previous image, the text becomes unreadable.

Hi there,

You can change how the document is rasterized by using updateRasterizerOptions(), however keep in mind that the document coloring is expected. More information on the API can be found here: PDFJS Express WebViewer Class: Document

Best regards,
Kevin