[Poppler-bugs] [Bug 106406] pdftotext cannot extract text correctly from specific pdf

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun May 6 13:51:11 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106406

Derrick <ls89822 at 163.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from Derrick <ls89822 at 163.com> ---
I download the evince, the file could be viewed by evince.
Could you tell me why it could not be extracted by pdftotext?

I know the file can't be extracted under the following scenes:
1. The word is drawed by line, not word.
2. The font type is fontTrueType or fontTrueTypeOT, the character set is same
as system character set.

But in this case, the font type is "fontCIDType2 Identity-H
BFAIEF+SimSun-GBK-EUC-H", I think it should by extracted correctlly.
====================================================
gs /GS1
exec op gs
  gfx state dict: << /OP false /OPM 1 /SA false /SM 0.02 /Type /ExtGState /op
false >>
BT
exec op BT
Tf /TT2 1
exec op Tf
 opSetFont args[0].getName=TT2
  font: tag=TT2 name='BFAIEF+SimSun-GBK-EUC-H' 1
Tm 16.0751 0 0 16.0751 167.949 734.655
exec op Tm
cs /Cs6
exec op cs
scn 0.019608 0.003922 0
exec op scn
Tc 0
exec op Tc
Tw 0
exec op Tw
Tj (ɩ
exec op Tj
font doShowText key=TT2 name=10 Identity-H BFAIEF+SimSun-GBK-EUC-H
ET
exec op ET
q
exec op q
i 1
exec op i
===============================================================

By default, poppler think the character is UCS-4 in operation TJ, maybe in this
case, the character is other, cause extracted uncorrectlly. 

The attachment is debug information of the pdf file by poppler.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180506/631fbc12/attachment.html>


More information about the Poppler-bugs mailing list