Friday, January 12, 2007

PDF/PS/EPS 转 WMF/EMF

Word 对 PDF/PS/EPS 图支持不好,要把它们插入到 Word,可以先转成 WMF/EMF 图。目前找到的最好的转换方法是用 pstoedit,它是开源软件,在 Windows 平台和 Linux 平台都可以用。使用时需要先安装 PostScript 解释器(如 GhostScript)。它只支持命令行操作,如转 EPS/PDF 为 WMF:
pstoedit -f wmf file.eps(pdf) file.wmf
转 EPS 为 PDF:
pstoedit -f pdf file.eps file.pdf

pstoedit -f ps:pdfwrite file.eps file.pdf
如文件不止一页,须在目标文件名中加上"%d",如:
pstoedit -f wmf file.pdf file%d.wmf
除了 WMF/EMF和PDF,pstoedit 还支持输出很多其它矢量图格式,如 LaTeX2e,gnuplot,MetaPost,Mathematica,SWF等。

参考:
Converting from PostScript to EWM
libEMF: Enhanced Metafile Library

No comments:

Post a Comment

Please let me know who you are.