11 June 2020

Converting svg to dxf from terminal requires inkscape and pstoedit. I myself am using svgo to cleanup the svg file, haven't tested if it makes difference in some edge cases.

Source code viewer
  1. svgo example.svg
  2. inkscape -o example.eps example.svg
  3. pstoedit -dt -f 'dxf:-polyaslines -mm' example.eps example.dxf
Programming Language: Bash