[cairo] Problem with png in pdf documents when using acroread

Eugeniy Meshcheryakov eugen at debian.org
Wed Apr 4 15:05:46 PDT 2007


4 квітня 2007 о 17:55 -0400 Behdad Esfahbod написав(-ла):
> This is because you are setting source with cairo_set_source_surface()
> and do not reset it to black by the time of cairo_stroke() in the second
> run of the loop.
Ok, then maybe it is not a bug, using cairo_save/cairo_restore also
makes generated pdf files smaller for program that draws only text and
lines:

% ls -l out.pdf out-save-restore.pdf
 -rw-r--r-- 1 eugen eugen 910407 2007-04-04 23:43 out.pdf
 -rw-r--r-- 1 eugen eugen 820453 2007-04-04 23:43 out-save-restore.pdf

maybe it should be recomended in documentation to use save/restore for
multipage pdfs?

-- 
Eugeniy Meshcheryakov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070405/35f66143/attachment.pgp


More information about the cairo mailing list