Created attachment 27947 [details]
While trying to implement radial gradients in poppler cairo backend, I noticed that the cairo code used to generate the pdf file doesn't provide the same output using an image surface.
The attached file is a modified version of the original code (by adrianj) to generate both pdf and png outputs. I'll attach a screenshot too.
Created attachment 27948 [details]
Author: Chris Wilson <firstname.lastname@example.org>
Date: Thu Jul 23 19:08:40 2009 +0100
Fix inversion of radial gradients when r2 > r1
Fixes: Bug 22908 -- Invalid output of radial gradient
We also include a modified patch by André Tupinambá <email@example.com>,
to pull constant expressions out of the inner radial gradient walker.