Re: Printing of vector graphics?
Satz Klauer <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAJoPetry5vERWJ3U4LZu6f4XjXZ-KCeDqHiXyTWn18PoBwRJYg@mail.gmail.com> |
On Mon, Jan 28, 2013 at 9:55 PM, Andrew Cowie < [email protected]> 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! -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo