[Poppler-bugs] [Bug 20013] pdftotext doesn't support /Alt nor / ActualText with octal content
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Feb 25 14:13:27 PST 2009
http://bugs.freedesktop.org/show_bug.cgi?id=20013
Ross Moore <ross at maths.mq.edu.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #22702|Similar to the PDF with |This patch fixes just 1
description|/ActualText tagging from the|line, using coding that
|2nd location of the |appears elsewhere within the
|description. The internal |Poppler code-base;
|PDF coding is slightly |e.g. in poppler/CMap.cc
|different but the effect |and poppler/Outline.cc .
|should be the same. |
--- Comment #2 from Ross Moore <ross at maths.mq.edu.au> 2009-02-25 14:13:26 PST ---
(From update of attachment 22702)
*** TextOutputDev-prev.cc Wed Feb 18 04:59:28 2009
--- TextOutputDev.cc Wed Feb 18 05:42:22 2009
*************** void TextOutputDev::endMarkedContent(Gfx
*** 4657,4663 ****
length = length/2 - 1;
uni = new Unicode[length];
for (i = 0 ; i < length; i++)
! uni[i] = (uniString[2 + i*2]<<8) + uniString[2 + i*2+1];
text->addChar(state,
actualText_x, actualText_y,
--- 4657,4663 ----
length = length/2 - 1;
uni = new Unicode[length];
for (i = 0 ; i < length; i++)
! uni[i] = ((uniString[2 + i*2] & 0xff)<<8)|(uniString[3 + i*2] & 0xff);
text->addChar(state,
actualText_x, actualText_y,
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list