diekissZine

LogIn  . . . .  如果有一天我突然死了,请将我火化,骨灰葬在大海。每年夏天的时候到海边一次,带一束雏菊。
TIF和DOC转到PDF的方案
[ 2010-07-28 | 内容编辑: 阿峰 | 栏目: 技术文章 | 点击: 38 ]
Font Size: Large | Medium | Small

 1、TIF to PDF:

使用ImageMagick:

system("G:\\ImageMagick\\convert testin.tif testout.pdf", $outPut);

2、DOC to PDF (.doc含有iSignature/GDCA的电子印章)

system('g:\PsExec.exe -x -u afeng -p 119 g:\classexec g:\test.doc --action print', $outPut);

其中PsExec.exe 是Sysinternal提供的工具。
classExec 是另一个工具。


你的昵称:
评论内容:
  验证码: (点击更换另一组验证码)
afeng* / 2010-08-09 14:09
在服务器上测试psexec.exe 加上 -i 参数才能正常运行(不知道是不是同时还是远程桌面的原因?)。
不过关掉远程桌面,用 -i 也正常。那么默认应该用-i参数