我有几个 EMF 文件。如何在 Linux 上将它们转换为 ps/pdf/tiff?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7976438/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 06:57:17  来源:igfitidea点击:

I have a few EMF files. How I can convert them into ps/pdf/tiff on Linux?

linuxgraphic

提问by Anton Shevtsov

I have few EMF (Enhanced Windows Metafile) files. How I can convert them into ps/pdf/tiff on Linux (CentOS 5.x)? Command line interface is preferred.

我的 EMF(增强型 Windows 图元文件)文件很少。如何在 Linux (CentOS 5.x) 上将它们转换为 ps/pdf/tiff?首选命令行界面。

采纳答案by NullNoname

unoconvcan convert emf to pdf and tiff via command-line:
For pdf: unoconv filename.emf
For tiff: unoconv -f tiff filename.emf
It doesn't seem to support ps file export, though.
You are still required to install OpenOffice.org/LibreOffice because this tool uses them as the backend.

unoconv可以通过命令行将 emf 转换为 pdf 和 tiff:
对于 pdf: unoconv filename.emf
对于 tiff: unoconv -f tiff filename.emf
但是它似乎不支持 ps 文件导出。
您仍然需要安装 OpenOffice.org/LibreOffice,因为此工具将它们用作后端。

回答by Dingo

as far I know, to convert EMFto .psand .pdf, keeping vector quality, you need to import in OpenOffice and then generate a pdfthat you can convert in a ps with pdftops

据我所知,要将EMF转换为.ps.pdf,保持矢量质量,您需要在 OpenOffice 中导入,然后生成一个pdf,您可以使用pdftops在 ps 中进行转换

a command-line tool (as import filter for sk1), is in preparation, but it seems not yet ready:

一个命令行工具(作为sk1 的导入过滤器)正在准备中,但似乎还没有准备好:

you can then, once made a pdf, convert from pdf format to tiff with latest releases of pdftoppm(despite its name it has gained ability to convert to tiff format) or use pdftocairoat desired resolution

然后,一旦制作了 pdf,您就可以使用最新版本的pdftoppm将 pdf 格式转换为 tiff (尽管它的名称已获得转换为 tiff 格式的能力)或以所需的分辨率使用pdftocairo