高质量的pdf到eps

时间:2017-06-24 13:29:35

标签: pdf eps

我一直使用pgfplot latex来生成数字(.pdf格式)。现在,我想要发布的期刊希望我的数据是eps格式。

我尝试使用pdftops -eps fig.pdf fig.eps将pdf转换为eps。但是生成的eps文件质量很差。

原始图(.pdf格式) enter image description here

转换后的数字(以.eps格式) enter image description here

创建与我的输入pdf文件质量相同的eps文件的正确程序是什么?

修改

根据PooyaRaki的建议: Inkscape选项输出(.eps) enter image description here

Ghostscript选项(.eps格式) enter image description here

Acrobat reader选项输出(.ps格式) enter image description here

Acrobat阅读器似乎在这三者中效果最佳。

2 个答案:

答案 0 :(得分:11)

我推荐以下工具:

  • Inkscape(矢量图形编辑器,免费和多平台)

    可以使用GUI(打开PDF,另存为EPS)或使用 命令行(仅在Linux下测试):

    inkscape input.pdf --export-eps=output.eps
    
  • Acrobat Reader(Linux版)+ ps2eps(TeXLive)

    acroread -toPostScript input.pdf
    ps2eps input.ps
    
  • Ghostscript(多平台)注意:需要-dNOCACHE来防止 GhostScript来自rastering字体。

    gs -q -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=eps2write -sOutputFile=output.eps input.pdf
    

还有以下工具。我没有测试所有这些和一些光栅字体:-(!

  • ImageMagick转换(可能使用Ghostscript本身。调用它 手动,如果更灵活,可能会避免问题。转换可能 实际上光栅PDF!)

    convert input.pdf output.eps
    
  • pdf2ps(使用Ghostscript)+ ps2eps(随TeXLive一起提供)

  • pdftops(poppler的一部分),使用-eps开关进行EPS输出。

请注意,EPS格式无法处理透明度!

答案 1 :(得分:-1)

最后一个答案很好,但ImageMagick并不一定要格式化PDF。 您可以使用:     convert -density 600x600 inpute.pdf -quality 90 output.eps