Re: Printing of vector graphics?

Andrew Cowie <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Operational Dynamics
Message-ID <1359406514.9416.3.camel@turminder-xuss.roaming.operationaldynamics.com>
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



-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.