[cairo] Printing of vector graphics?

Satz Klauer satzklauer at googlemail.com
Tue Jan 29 00:02:54 PST 2013


On Mon, Jan 28, 2013 at 9:55 PM, Andrew Cowie <
andrew at operationaldynamics.com> wrote:

> 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?
>
> 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
>
>
This is exactly what I'm looking for. Unfortunately I'm not very familar
with GTK...so is there a small HOWTO/example code available somewhere that
demonstrates how to start printing/invoke this draw_page-function?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20130129/b7de5e56/attachment.html>


More information about the cairo mailing list