2011/03/02

在 Ubuntu 上看 GBK 簡中的 PDF 文件

朋友傳了一份 GBK 簡中編碼的 PDF 文件給我。此文件在 Ubuntu 底下 Adobe Reader 8.1.7 開不起來,錯誤訊息說要到以下網址下載 Font Packs:
http://www.adobe.com/products/acrobat/acrrasianfontpack.html
然而,這個 URL 早已失效了。切換到 Windows Vista,用 Adobe Reader X 來開啟,也是要求要安裝 Chinese Simplified Font Packs。但畢竟是主流平台的最新版本,直接點選錯誤訊息的連結就可以完成安裝程序。

在 Ubuntu 上就沒有解法嗎?答案是有的。Adobe Reader 8.1.7 是 Linux 上有中文介面的最新版本,但卻沒有對應的 Chinese Simplified Font Packs,所以必須換成英文介面的較新版本。

目前,Adobe 網站上能找到的最新 Chinese Simplified Font Packs 是 9.1.0 版。根據測試,可以搭配 Adobe Reader 9.5.5。步驟如下:

移除舊版 Adobe Reader 之後,再安裝新的版本:
# sudo -s
# cd /tmp
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/AdbeRdr9.5.5-1_i386linux_enu.deb
# dpkg -i
AdbeRdr9.5.5-1_i386linux_enu.deb
接著,再安裝 Font Packs (簡中和繁中都必須裝,否則 Big5 編碼的也開不起來):
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.1/misc/FontPack910_cht_i486-linux.tar.bz2
# tar xvjf FontPack910_cht_i486-linux.tar.bz2
# cd CHTKIT/
# ./INSTALL
# cd /tmp
# wget ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/9.1/misc/FontPack910_chs_i486-linux.tar.bz2
# tar xvjf FontPack910_chs_i486-linux.tar.bz2
# cd CHSKIT/
# ./INSTALL
以下是 ./INTALL 的過程,僅供參考:
Welcome to the Asian Language Kit installation.
This installation will not work if you do not have the Unix Adobe Reader version 9.1 installed prior to this installation.
If you do not have Adobe Reader version 9.1 already installed on your system please do so before installing this Asian Language Kit.
Continue installation? [y]y
The font software contained in this package is being licensed to you solely
for use with the Adobe Reader product ("Adobe Reader") subject to
the terms and conditions of the Electronic End User License Agreement
accompanying the Adobe Reader.

Please type "accept" to accept the terms and conditions of license agreement; Type "decline" to exit. accept
Enter the location where you installed the Adobe Reader [/opt]

Installing Common binaries ...
Done

Installing Common resources ...
Done

Installing Simplified Chinese language resources ...
Done
Installation completed.

1 則留言:

Yi-Zhe Wang 提到...

感謝您提供的方法,讓我順利地解決了無法看簡體中文pdf檔的問題。