For converrting svg to dxf I use svgToDxf.sh (see in attachment) My source svg and result dxf screenshot also in attachment. Πhe problem is that the smooth curves turned into a set of straight lines.
It's possible to use the inkscape extensions (python) without inkscape being installed. So converting svg to dxf should be possible by running these extensions alone.
I've managed to follow the instructions in this thread to do SVG->EPS, and then EPS->DXF. However, in the process, fonts are not translated to text entities in DXF, and any hatching (patterns) in SVG + CSS are lost in the conversion.
Β
Does anybody know how to retain this information during the conversion? Or an alternative workflow?
For converrting svg to dxf I use svgToDxf.sh (see in attachment) My source svg and result dxf screenshot also in attachment. Πhe problem is that the smooth curves turned into a set of straight lines.
How I can resolve this issue?
The first thing to find out would be: Does the dxf file format in the version that Inkscape knows have support for anything but straight lines?
The first line of result dxf is:
%!PS-Adobe-3.0 EPSF-3.0
How convert to dxf with curves? Also I found second way. In console:
inkscape -f vasya.svg -E vasya-ink.dxf
in this case vasya-ink.dxf looking good in adobe illustrator, but inkscape can't open it
"Vasya Ink" is not a dxf. It is an EPS file.
And FWIW, Inkscape can via GUI output DXF with arcs, splines, polylines, circles, etc.
Yep, consulting the man page I see:
Ohh...
in man inkscape output i see nothing about export to dxf.
I need convert svg to dxf on linux server without GUI
How I can resolve my problem?
I found solution. in shell script I change line
pstoedit -dt -f 'dxf:-polyaslines -mm' "${epsfile}" "${dxffile}" >/dev/null 2>&1
to
pstoedit -dt -f 'dxf_s:-splineasbezier -mm' "${epsfile}" "${dxffile}" >/dev/null 2>&1
I hope this help someone
It's possible to use the inkscape extensions (python) without inkscape being installed. So converting svg to dxf should be possible by running these extensions alone.
https://gitlab.com/inkscape/extensions/blob/master/dxf12_outlines.py
In this case, the question was how to use the commandline to convert the format.
Inkscape can convert it from the interface as well.Β So conversion website is not needed.
I've managed to follow the instructions in this thread to do SVG->EPS, and then EPS->DXF. However, in the process, fonts are not translated to text entities in DXF, and any hatching (patterns) in SVG + CSS are lost in the conversion.
Β
Does anybody know how to retain this information during the conversion? Or an alternative workflow?