从svg转换为pdf保留图像元数据 [英] Converting from svg into pdf preserving image metadata
问题描述
我有带有元数据信息的 .svg
文件,例如 creator
, contributor
, licence
等上.现在,当我将它们转换为 .pdf
时,我松开了所有这些元数据,并且仅以 Producer的身份看到 cairo 1.14.6(http://cairographics.org)
和 Creator .
I have .svg
files with metadata information, e.g., creator
, contributor
, licence
, and so on. Now, when I convert them into .pdf
I loose all these metadata and I see only cairo 1.14.6 (http://cairographics.org)
as Producer and Creator.
对于转换,我已经尝试了两个cairosvg 2.4.2和inkscape 0.92.5 .并且所有 .svg
元数据都将丢失.:\
For conversion, I have tried both cairosvg 2.4.2 and inkscape 0.92.5. And all the .svg
metadata is lost. :\
我有两个问题:
- 是否有任何方法或应用程序可以将
.svg
转换为.pdf
并保留元数据? - 或者,或者,在转换之后,我能以某种方式轻松地将元数据从
.svg
传输到.pdf
吗?
- Is there any method or application to convert
.svg
into.pdf
and preserve the metadata? - Or, alternatively, after converting, could I somehow transfer the metadata from
.svg
into.pdf
easily?
谢谢.
PS:令人惊讶的是,当我使用 Inkscape 从 .svg
转换时保存为 .png
元数据.
PS: Surprisingly, when I use Inkscape to transform from .svg
to .png
the metadata is preserved.
推荐答案
在新的Inkscape 版本 1.01
中,从转换时保留了大部分元数据> .svg
转换为 .pdf
,而在以前的版本 0.92.5
中,它丢失了.
In the new Inkscape version 1.01
, most part of the metadata is preserved when converting from .svg
to .pdf
, while in the previous version, 0.92.5
, it was lost.
感谢@Moini在Inkscape的发行说明中提供了提示.
Thanks to @Moini for giving a hint in the release notes of Inkscape.
对于Linux:使用Flatpak安装最新的Inkscape 版本1.01
For Linux: Install the newest Inkscape version 1.01 using flatpak
这篇关于从svg转换为pdf保留图像元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!