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 [EMAIL PROTECTED] [EMAIL PROTECTED] http://carlosgc.linups.org PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
signature.asc
Description: Esta parte del mensaje está firmada digitalmente
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
