[poppler] problem displaying pdf contains Chinese character

Yuanle Song sylecn at gmail.com
Wed Apr 1 23:30:04 PDT 2009


Hi everyone,

I have a problem view a Chinese pdf file, as you can see in the
attached screenshot. I have poppler-data installed. Many other pdf
files in Chinese are displayed correctly.

I have notice the font name may be the problem.
According to acrobat reader, there are totally 9 fonts.
Four are embedded, One is "X0" (Type 3), the other 4 are not embedded.
The 4 fonts that are not embedded are:
FangSong_GB2312,仿宋_GB2312
SimHei,黑体
KaiTi_GB2312,楷体_GB2312
SimSun,宋体
I already have them on my system(fc-list). They are all truetype fonts.

I try to run pdffonts on the file for the first 10 pages and get some 
non-ASCII(unreadable) character on the terminal. I attached the output 
of the command 

    pdffonts -f 1 -l 10 ~/d/myfile.pdf > page1to10

cat can't handle it, but vim can show it as following which is correct:
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
宋体                                 TrueType          no  no  no    1599  0
黑体                                 TrueType          no  no  no    1723  0
仿宋_GB2312                          TrueType          no  no  no    1600  0
楷体_GB2312                          TrueType          no  no  no    1598  0

So this fonts are using Chinese character in their names compared to many other
files which uses the English name of the same font. I don't know if it matters.
Just guessing :)

Any suggestions are welcome.

I'm using the following debian pkg:
libpoppler4         0.10.4-3
libpoppler-glib4    0.10.4-3
poppler-data        0.2.1-3
evince              2.24.2-2

--
Best regards,
Yuanle

screenshot "not-showing-correctly.png" attached.
pdffonts output "page1to10" attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not-showing-correctly.png
Type: image/png
Size: 139137 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20090402/6ce87ea6/attachment-0001.png 
-------------- next part --------------
name                                 type              emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
ËÎÌå                                 TrueType          no  no  no    1599  0
ºÚÌå                                 TrueType          no  no  no    1723  0
·ÂËÎ_GB2312                          TrueType          no  no  no    1600  0
¿¬Ìå_GB2312                          TrueType          no  no  no    1598  0


More information about the poppler mailing list