我修改了一些用Inkscape扫描的旧电气计划。现在我必须将它们重新转换成PDF格式,然后将它们合并到原始文档中。
问题是,对于Inkscape,我在文档中得到一些问题,比如带有阴影的意料之外的矩形。
当我用rsvg转换转换它时,光栅图像的压缩质量很差,但是它们已经坏了,所以效果不好。我使用以下命令:
rsvg-convert --keep-image-data -a -f pdf 2.svg > out.pdf我得到了正确的结果:

最后,与形象,一切都是粗糙的,甚至增加文本和元素和质量也是不好的。
我怎样才能解决这个问题,我认为最好的办法是转化,但就目前而言,它还不够好……
预先感谢您的回答
发布于 2023-04-03 17:23:02
我找到了一个方法来提高输出的分辨率。
rsvg-convert选项(来自手册页)
-d --dpi-x number
Set the X resolution of the image in pixels per inch. RSVG's current default is 90
DPI.
-p --dpi-y number
Set the Y resolution of the image in pixels per inch. RSVG's current default is 90
DPI.试试rsvg-convert --keep-image-data -d 300 -p 300 -a -f pdf 2.svg > out.pdf,它将图像的x分辨率和y分辨率设置为每英寸300个像素。
https://askubuntu.com/questions/1412102
复制相似问题