[Poppler-bugs] [Bug 54504] possibly incorrect calculation of indexes of PopplerTextAttributes
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Nov 23 04:19:25 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=54504
--- Comment #1 from Jason Crain <jason at aquaticape.us> ---
Created attachment 70475
--> https://bugs.freedesktop.org/attachment.cgi?id=70475&action=edit
check if words end with spaces
poppler_page_get_text_layout and poppler_page_get_text_attributes assume that
each word ends with a space or newline, causing them to become mismatched from
the text. This patch adds a check to TextWord::getSpaceAfter.
This fixes the problem for this file, but there are still other situations
where the indexes can become mismatched because of the way
TextSelectionDumper::getText aligns tables. I don't know how to fix that
unless you want to modify poppler_page_get_text to return something simpler,
instead of calling TextPage::getSelectionText to get the physical layout.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20121123/82b09baf/attachment.html>
More information about the Poppler-bugs
mailing list