<div style="font-size:10pt;font-family:arial,helvetica,sans-serif;color:black;">Hi,<div><br></div><div>I wrote a couple of functions for finding the area used by text in a page; it</div><div>returns an number of PopplerRectangle that should enclose all text as strictly</div><div>as possible. Another function returns the smallest rectangle covering all text,</div><div>like 'gs -sDEVICE=bbox' does in postscript.</div><div><br></div><div>The enclosed test program can be run by 'pdfrects file.pdf' and produce a new</div><div>pdf file 'result.pdf' with the rectangles drawn in various colors.</div><div><br></div><div>They may be used for example for copying text from two-column documents, to</div><div>zoom to the area actually used in the page, for creating a new document better</div><div>suited for small-screen devices such as tablets, ebook readers and mobile</div><div>phones.</div><div><br></div><div>If you think such functions may be of general use I may make a patch to</div><div>incorporate them in poppler.</div><div><br></div></div>