[poppler] Poppler and partial rendering
Albert Astals Cid
aacid at kde.org
Wed Nov 9 05:42:41 PST 2011
A Dimecres, 9 de novembre de 2011, vàreu escriure:
> Excerpts from Peter17's message of mié nov 09 14:14:44 +0100 2011:
> > Dear all,
> >
> > I am studying those bug reports: [1], [2], [3] and this e-mail [4].
> >
> > To sum up, Evince and Okular are using Poppler as a backend. The zoom,
> > in those 2 software, is limited to 400%.
> > Is there a place where this function is documented? Is it
> > frontend-dependent?
>
> The usage depends on the frontend, I don't know how the qt4 frontend
> works, but with glib you can use cairo API. Assuming you want to
> render into an image surface, to render the slice x, y, with, height
> you could do something like:
>
> surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
> cr = cairo_create (surface);
> cairo_translate (cr, -x, -y);
> poppler_page_render (page, cr);
I stand corrected when i said that you could not do it with the glib frontend,
but probably you still want to add a function that calls displaySlice with the
x, y, height, width so Gfx knows where to crop and saves some work.
Albert
>
> > Thanks in advance
> >
> > Best regards
> >
> > [1] https://bugs.launchpad.net/evince/+bug/241604
> > [2] https://bugzilla.gnome.org/show_bug.cgi?id=303365
> > [3] https://bugs.kde.org/show_bug.cgi?id=148527
> > [4]
> > http://lists.freedesktop.org/archives/poppler/2005-November/001125.html
> Regards,
> --
> Carlos Garcia Campos
> PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
More information about the poppler
mailing list