[poppler] [Qt backend] page::getText

Albert Astals Cid tsdgeos at yahoo.es
Tue Apr 19 14:40:54 PDT 2005


Hi, this function adds page::getText to the Qt backend, it accepts a rectangle 
as parameter. If the rectangle is null the whole page text is returned, if 
not it returns the text inside that rectangle.

It also features like it seems like a memory leak fix, as doing 

DocumentData *doc = new DocumentData(new 
GooString(QFile::encodeName(filePath)), NULL);

seems like a good way to never recover the memory new'ed at that new Goostring

Any comments?

Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: poppler.patch
Type: text/x-diff
Size: 5500 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050419/d187f660/poppler.bin


More information about the poppler mailing list