I want to read Japanese PDF documents using XPDF.

0 votes
asked by
edited by

I want to read Japanese PDF documents using XPDF. I read English PDF documents using XPDF pdftotext. But pdftotext does not convert Japanese PDF document to text.

1 Answer

0 votes
answered by (100k points)
edited by

If you need Japanese support then you will have to download the support package which is found on the same page as the main download of the program.

Extract the archive with your favorite extracting application (Windows or Unix) and place the files to:

Unix - /usr/local/share/xpdf/japanese
Win32 - C:\Program Files\xpdf\japanese

After this open "add-to-xpdfrc" file from the extracted archive and copy its contents to xpdfrc file which is found in:

Unix - /usr/local/etc/xpdfrc
Win32 - C:\Program Files\xpdf\xpdfrc

The code which is needed is:

#----- begin Japanese support package (2011-sep-02)
cidToUnicode    Adobe-Japan1    /usr/local/share/xpdf/japanese/Adobe-Japan1.cidToUnicode
unicodeMap  ISO-2022-JP /usr/local/share/xpdf/japanese/ISO-2022-JP.unicodeMap
unicodeMap  EUC-JP      /usr/local/share/xpdf/japanese/EUC-JP.unicodeMap
unicodeMap  Shift-JIS   /usr/local/share/xpdf/japanese/Shift-JIS.unicodeMap
cMapDir     Adobe-Japan1    /usr/local/share/xpdf/japanese/CMap
toUnicodeDir            /usr/local/share/xpdf/japanese/CMap
#fontFileCC Adobe-Japan1    /usr/..../kochi-mincho.ttf
#----- end Japanese support package

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...