Linux平台阅读PDG格式的文档


Linux平台下能直接阅读PDG文档的工具好象还没有,但是可以通过wine来解决。

1、首先要安装wine,并配置

sudo yum install wine

解决子窗口乱码问题:

gedit ~/.wine/system.reg

(一定要使用 gedit 或其他支持 gb2312/utf8 编码的编辑器修改这些文件,否则文件中的中文可能变乱码)

搜索: LogPixels
找到的行应该是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]

将其中的:
“LogPixels”=dword:00000060

改为:
“LogPixels”=dword:00000070

搜索: FontSubstitutes
找到的行应该是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]

将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”

改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”

2、解压pdgreader pro

gunzip -d pdg_pro.zip

3、运行pdgreader pro

$cd pdg_pro
$./linux.sh
$wine pdg_pro/pdgreader_pro.exe

使用pdgreader pro打开pdg文档,可正常阅读。

linux.sh内容如下:

#!/bin/sh
echo "coping pdg2.dll to wine's system32 directory!!"
cp pdg2.dll ~/.wine/drive_c/windows/system32/pdg2.dll
echo "Now,completed!! Good luck!"

相关内容