【发布时间】:2016-01-07 15:46:01
【问题描述】:
我正在尝试将 Latex 生成的 PDF 转换为 svg。在乳胶中,我使用\includegraphics{someimage.png} 包含了一些图像。生成的 pdf 看起来不错。
但是,当我使用 inkscape 转换为 svg 时,图像会失真。有谁知道为什么?我使用的命令是inkscape --file=test.pdf --export-plain-svg=output.svg。
编辑: tex代码是
\documentclass[preview]{standalone}
\usepackage{graphicx}
\begin{document}
\includegraphics[scale=0.5]{face.jpg}
\end{document}
还有一些图片(这里是 jpg,但 png 也有问题)
得到的 pdf 是 here
命令后的结果:
【问题讨论】:
-
如果没有指向 PDF、someimage.png 甚至是用于生成它的 tex 文件的链接,我们将无法为您提供帮助。 PDF 不是 一种用于交换可编辑 文档的格式,因此可以解释它。如果你想听我的意见,在这里使用 pdflatex 是错误的选择 - 使用 latex 而不是 pdflatex -> dvips -> pstoedit -> inkscape,就像inkscape 的乳胶渲染扩展一样。