[cairo] Printing of vector graphics?
Andrew Cowie
andrew at operationaldynamics.com
Mon Jan 28 12:55:14 PST 2013
On Mon, 2013-01-28 at 09:06 +0100, Satz Klauer wrote:
> But: how can I send these data to a printer instead of drawing them
> onto some canvas?
One way to do it is to draw to a PDF surface, then open the .pdf in
Evince and hit Ctrl+P.
http://www.cairographics.org/manual/cairo-PDF-Surfaces.html
Or you can get into the GtkPrintOperation code if you're making a user
interface on Linux. You get a Cairo context to draw on there, the same
as other places in GTK.
http://developer.gnome.org/gtk3/3.6/gtk3-High-level-Printing-API.html#GtkPrintOperation-draw-page
AfC
Canberra
More information about the cairo
mailing list