Bug 27999

Summary: TextPage::getText in rawOrder doesn't work
Product: poppler Reporter: Daniel Garcia <dani>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch that make avaliable to request the text from TextData in rawOrder
TextData::getText in rawOrder now count chars

Description Daniel Garcia 2010-05-06 09:02:33 UTC
I saw that using rawOrder in TextOutputDev you can't use getText method,
it always returns an empty GooString:

...
3603   s = new GooString();
3604 
3605   if (rawOrder) {
3606     return s;
3607   }
...

It should return the text between xMin, yMin and xMax, yMax in raw order.
Comment 1 Daniel Garcia 2010-05-06 23:50:38 UTC
Created attachment 35480 [details] [review]
Patch that make avaliable to request the text from TextData in rawOrder

Patch that make avaliable to request the text from TextData in rawOrder. I add also a test, gettext-test.cc that gets the text of a pdf file and print to the screen.
Comment 2 Daniel Garcia 2010-05-10 01:29:54 UTC
Created attachment 35540 [details] [review]
TextData::getText in rawOrder now count chars

In the previous patch getText with rawOrder only looked if words are between limits. This commit adds chars of a word which are in.
Comment 3 Albert Astals Cid 2010-05-29 06:21:38 UTC
What's the use case for this?

Also we are on feature freeze for release of 0.14.0 so it can not go in after that, sorry
Comment 4 GitLab Migration User 2018-08-21 11:21:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/630.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.