[poppler] find all text

Leonard Rosenthol leonardr at pdfsages.com
Sat Jul 22 17:56:51 PDT 2006


At 06:10 PM 7/21/2006, oh.hello.joe at gmail.com wrote:
>Is there a function to get a rectangle containing all the text on the page?

         There is nothing built into Poppler or the underlying Xpdf - 
but you have all the necessary pieces from which to build it.  I've 
done it using a custom OutputDev.


>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.

         Remember you have PDFs that aren't just text - so you need 
to consider ALL VISIBLE content...


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:leonardr at pdfsages.com>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)



More information about the poppler mailing list