9.2. bg5pdf - 轉換中文 Big5 編碼文件成為不內嵌的 PDF

這是由 Chen-Shan Chin 使用 python 及 PDFLib 所寫的軟體,直接由中文 big5 txt 轉成中文 pdf 檔,使用不內嵌的 Acrobat Reader 的中文 CIDKeyed font,可以使檔案變得非常的小 (只是註冊了中文字型的名稱而已), 只是目前只有固定大小的字體可用, 無法做出標題之類的變化。好處是, 可以做 copy & paste 及有 search 的功能。

安裝 chinese/bg5pdf

測試:

% echo "中文測試" > test.txt
% bg5pdf test.txt
Output File is test.txt.pdf
% pdffonts test.txt.pdf
name                                 type         emb sub uni object ID
------------------------------------ ------------ --- --- --- ---------
MSung-Light-ETen-B5-H                CID Type 0   no  no  no       7  0
Helvetica-Oblique                    Type 1       no  no  no       8  0

Figure 9-4. bg5pdf snapshot

WWW: http://students.washington.edu/cschin/