[poppler] glib/poppler-page.cc glib/poppler-page.h

Jeff Muizelaar jeff at infidigm.net
Thu Oct 4 08:56:24 PDT 2007


On Thu, Oct 04, 2007 at 05:10:43PM +0200, Carlos Garcia Campos wrote:
> 
> El jue, 04-10-2007 a las 10:56 -0400, Jeff Muizelaar escribió:
> > On Thu, Oct 04, 2007 at 04:47:27PM +0200, Carlos Garcia Campos wrote:
> > > 
> > > El jue, 04-10-2007 a las 10:27 -0400, Jeff Muizelaar escribió:
> > > > On Thu, Oct 04, 2007 at 03:37:37AM -0700, Carlos Garcia Campos wrote:
> > > > >     Add poppler_page_render_for_printing() and poppler_page_render_to_pixbuf_for_printing()
> > > > >     
> > > > >     We were unconditionally passing printing=gFalse to displaySlice. With these new
> > > > >     functions we can render to a pixbuf or cairo surface passing printing=gTrue to
> > > > >     displaySlice.
> > > > > 
> > > > 
> > > > I'm curious. What's the effect and motivation behind this?
> > > 
> > > Look at this bug: http://bugzilla.gnome.org/show_bug.cgi?id=476627
> > > 
> > > The trivial fix was just adding a printing parameter to
> > > poppler_page_render, but it would have meant breaking the api again. 
> > 
> > Makes sense. I didn't know that evince did printing style operations
> > with the cairo backend. 
> 
> yes! we are now using cairo to print to ps and pdf files so that we can
> create ps files with multiple pages per sheet, for example. 

Is the cairo path always used for printing or does it depend on whether
multiple pages are being printed per sheet?

-Jeff


More information about the poppler mailing list