Bug 123540

Summary: Japanese PDF scrambled with xpdf 3.00
Product: [Fedora] Fedora Reporter: Nakai <ynakai>
Component: xpdfAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: high Docs Contact:
Priority: medium    
Version: 2CC: eng-i18n-bugs, fedora-ja-list, wtogami
Target Milestone: ---Keywords: i18n
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-24 16:51:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
F*ck'n easy Japanese pdf - but xpdf fails to show
none
screenshot of samle-orig.pdf before patch
none
screenshot of sample-orig.pdf: after patch
none
diff for /etc/xpdfrc.ja none

Description Nakai 2004-05-19 08:00:03 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040312

Description of problem:
The current xpdf rpm package in Fedora has
serious mistake that it can show
font embedded Japanese pdf file but cannot show
Japanese pdf without font inside.

This patch
http://thinkpad.et8.net/lucida/linux-patch/files/xpdf-3.0-cjk-font.diff
fixes CID->GID mapping fontCIDType2, which is the CID font format
with TrueType wrapped inside with dictionary.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Open Japanese PDF with xpdf
2. No string...
3.
    

Actual Results:  No string

Expected Results:  Actual Japanese string.

Additional info:

This patch is not Japanese specific so should not break other
languages.

And you need to delete displayFontX line and add the line
displayCIDFontTT Adobe-Japan1
"/usr/share/fonts/ja/TrueType/kochi-gothic-subst.ttf"
in /etc/xpdfrc.ja.

Korean and Chinese are supposed to have that problem too
and it'll be fixed samely.

Comment 1 Nakai 2004-05-19 08:01:14 UTC
Created attachment 100319 [details]
F*ck'n easy Japanese pdf - but xpdf fails to show

Comment 2 Nakai 2004-05-19 08:03:57 UTC
Created attachment 100320 [details]
screenshot of samle-orig.pdf before patch

Comment 3 Nakai 2004-05-19 08:04:26 UTC
Created attachment 100321 [details]
screenshot of sample-orig.pdf: after patch

Comment 4 Nakai 2004-05-19 08:11:31 UTC
Created attachment 100322 [details]
diff for /etc/xpdfrc.ja

Comment 5 Than Ngo 2004-05-19 08:55:21 UTC
Yukihiro, could you attach a test pdf file for testing please? Thanks

Comment 6 Leon Ho 2004-06-03 01:15:16 UTC
Comment 1 has a test pdf. Let me know if you need more. Cheers

Comment 7 Than Ngo 2004-06-24 16:51:07 UTC
i already added the patch into xpdf-3.00-5, it will show up in fc3
tree soon.

Please test it again if this problem is fixed. Thanks