XiaO

inkscape 转换 emf 图片格式

XiaO / 2020-05-29


在 office 文档中直接插入矢量图,还真不是一件容易的事情。它奇葩地并不支持将一般作图软件生成的 pdf 或 svg 文件直接插入文档中,而需要 emf 文件格式。

下面使用 inkscape(开源免费软件)将 pdf 或 svg 转换为可直接插入 office 的矢量图格式。

安装 inkscape

brew install --cask inkscape

使用 inkscape

inkscape 的使用说明书

inkscape --export-type="emf" filename.svg # 将 filename.svg 转换为 filename.emf 文件
inkscape --export-type="emf" filename.pdf # 将 filename.pdf 转换为 filename.emf 文件

#Gtk-WARNING **: 10:32:05.459: Locale not supported by C library.
#Using the fallback 'C' locale.
export LC_ALL=C

inkscape 的高级使用

例如,使用 inkscape 画: