I am trying to convert a svg file to dxf format form cli. Conversations were successful but my when i try to open them in Inkscape GUI or Dwg TrueView, i got blank screen from inkscape gui and error from Dwg TrueView saying that
Code: Select all
Error in drawing header on line 1.
C:\toolbox.dxf is not valid DXF file
Invalid or incomplete DXF input -- drawing discarded.
My first and second line in dxf file converted from cli is below
Code: Select all
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: cairo 1.15.6 (http://cairographics.org)
If i use Inkscape gui for dxf conversion (Save as dxf), no problems. I can open converted files in GUI and Dwg Trueview but if i use cli i got errors.
Cli commands used.
Code: Select all
inkscape -E c:\test.dxf c:\test.svg
and i also install pstoedit and try command
Code: Select all
pstoedit -dt -f dxf:-polyaslines c:\test.svg c:\test.dxf
Can somebody please help