[cairo] writing multiple surfaces to a single (pdf) file
ranma42 at gmail.com
Sun Nov 6 12:47:30 PST 2011
2011/11/6 Zoltán Vörös <zvoros at gmail.com>:
> Hi All,
> I would like to ask how one can save multiple surfaces into a single pdf
> file. I know how to save a single surface, but what if I would like to write
> two surfaces to two pages of a pdf file. One example could be if I save the
> original surface, then modify, and then save the new surface. Is this
> possible, or one has to concatenate the pdf files outside?
You can do that in cairo using cairo_copy_page() or cairo_show_page().
Unfortunately I cannot find any short sample that uses them...
I hope the documentation is sufficient
(The simplest reference I can provide is:
> cairo mailing list
> cairo at cairographics.org
More information about the cairo