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