[cairo] copying cairo surfaces to pdf/svg surface

Maarten Bosmans mkbosmans at gmail.com
Wed Nov 30 01:46:17 PST 2011


Please keep conversation on-list (use reply-all)

2011/11/30 Zoltán Vörös <zvoros at gmail.com>:
> Greetings Maarten,
>
> Many thanks for the reply! The drawing is mine, and in fact, it is not so
> much hassle to re-draw everything onto the pdf surface. I was simply hoping,
> perhaps, that I could get away with a one-liner here:)

Well, the usual thing to do is to abstract all your own drawing into
functions which accept a context (and which can call other functions
which accept a context). So when you've done that, it is indeed a one
liner to call your main drawing function not only for the Gtk context,
but also for the pdf surface context.

Maarten


More information about the cairo mailing list