For me, ps, pdf and svg backends more than meet my needs. My original
intent was not only to print my diagrams, but include them as figures in
other documents, which would require further conversion to, say, epsi.
Also, I see little inconvenience in running a separate program to print a
ps/pdf/svg saved from a gtk2hs application.
In other words: Please don't do anything extra to get the GTKPrint api
working on my account!
On Wed, May 23, 2007 at 02:55:02PM +0100, Duncan Coutts wrote:
> On Wed, 2007-05-23 at 11:21 +0100, Axel Simon wrote:
> > John,
> > On Tue, 2007-05-22 at 12:12 -0700, John Velman wrote:
> > > I guess I based this on to fast a reading of things I didn't understand.
> > > It seems gtk2hs imports, but doesn't export SVG.
> > With Cairo, you can definitely produce SVG. And as Duncan has pointed
> > out, in the next release you will be able to use the PS/PDF backend.
> Actually you're getting confused now Axel :-)
> In the 0.9.11 release we have a svg module that reads svg files and
> renders them on a cairo surface.
> As of half an hour ago we also have a svg backend for cairo (and ps and
> pdf) which allows you to produce output with cairo as .ps, .pdf or .svg
> > With respect to real printing, we could give it a go, but Duncan's
> > apiGen tool (which saves us a lot of work when adding a new module)
> > can't currently do the printing modules and, thus, we'd have to do that
> > all by hand. I could offer to bind a rudimentary printing functionality
> > for the next minor release.
> So using the ps/pdf backend gets you most of the way to being able to
> print conveniently. Gtk+ 2.10 also has a new GtkPrint API which deals
> with the aspect of actually getting the ps/pdf output sent to your
> printer (via cups or lpr or whatever else is configured). It also
> provides GUI widgets for dealing with printer and page setup. The
> GtkPrint stuff also uses cairo and internally it uses ps/pdf or the
> image backend depending on what your printer accepts.
> So in the mean time, until we bind the GtkPrint api, the quick and dirty
> way of printing is to use the cairo ps/pdf backend to generate ps or pdf
> files and then call lpr on that output file or something.