使用 pstoedit 将 pdf 转换为 dxf - 如何解决双边框问题?

问题描述 投票:0回答:1

我目前正在使用

pstoedit
将 pdf 文件转换为 dxf 文件。 这是我正在使用的
pstoedit
命令:

pstoedit -f "dxf: -ctl -mm" input.pdf output.dxf

我从文件

output.dxf
中获取文件
input.pdf
,但
output.dxf
中的圆形和正方形具有双边框而不是单边框。

期望的结果是:

圆圈:

circles

方格:

squares

但目前的结果是:

圆圈:

circles

方格: squares

如何解决这个问题?

我尝试使用

inkscape
命令将 pdf 文件转换为 dxf 文件。 我首先将 pdf 文件转换为 svg 文件,然后将其转换为 dxf 文件。

这是我使用过的

inkscape
命令:

inkscape input.svg --export-type=dxf --export-extension=org.ekips.output.dxf_outlines -o output.dxf

在这里,我得到的不是一个完美的圆,而是一个由 4 条弧线组成的圆。

圆圈 : circles

所以我转向

pstoedit
,现在我面临上述问题。

有没有正确的方法将pdf文件转换为dxf文件?我想修改当前命令以获得所需的结果(更喜欢使用

pstoedit
命令)。

python pdf svg inkscape dxf
1个回答
1
投票

通过添加这个选项(

-polyaslines
),消除双重边框的初步目标就达到了。

pstoedit -f "dxf: -ctl -mm -polyaslines" input.pdf output.dxf

有关更多信息,请访问 pstoedit 手册网站。 http://www.calvina.de/pstoedit/pstoedit.htm

© www.soinside.com 2019 - 2024. All rights reserved.