[poppler] glib API
Carlos Garcia Campos
carlosgc at gnome.org
Mon Jan 14 09:48:33 PST 2008
Hi all,
there are a couple of things about the glib API I would like to discuss
here:
- Images extraction
Current API is very consistent, poppler_page_get_image_mapping() returns
a GList of PopplerImageMapping objects. This is fine for other page
items (links, form fields) but not for images. Images have to be
rendered and require a lot of memory that quite often is not even used.
The idea is returning only the rectangle of the images and do the
rendering on demand. The easiest way to do that requires breaking the
API again. Fortunately images stuff is not a main feature used by every
client. Of course we can try another approach to not break the API.
Comments?
- Rendering page slices with cairo
poppler_page_render_to_pixbuf() receives the slice to render as
parameters, however poppler_page_rebnder doesn't. Right now, it's
possible to render a slice of a page by clipping after rendering (like
poppler-glib-demo does), but the whole page is rendered after all since
we are always passing the whole page as slice to Page::displaySlice().
This time breaking the API would have a higher impact, so we could just
add a new function like poppler_page_render_slice (page, x, y, width,
height, cairo_ctx). Comments?
--
Carlos Garcia Campos
elkalmail at yahoo.es
carlosgc at gnome.org
http://carlosgc.linups.org
PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://lists.freedesktop.org/archives/poppler/attachments/20080114/af207601/attachment.pgp
More information about the poppler
mailing list