Is there a function to get a rectangle containing all the text on the page?
This could be useful for a pdf viewer to zoom in enough so that the margins
are out of view but the text is as large as possible while still being in view.

I notice that the glib interface has poppler_page_find_text return a list of rectangles
where a string occurs. It throws an assertion failure if you give it NULL for a string.  It
could be altered to accept NULL and return a single rectangle that includes all the
text by searching for "".

My main interest is not really text neccessarily, but to add an automatic crop the
margin feature to a pdf viewer.
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to