'How can I match the colors for the output PDF?

I'm using fpdf with fpdi to import an existing PDF and make changes. However, the downloaded PDF looks much different than the one rendered in the browser (Chrome).

Browser rednered PDF (Left), Downloaded PDF (Right)

enter image description here

What should I be checking for this color issue?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source