

I've been doing some very light duty laser cutting (craft foam with 200mW laser diode - ) and the development process goes something like this: Sorry this isn't a one-size-fits-all answer - but hopefully it will give you some things to try.Not a complete newbie but new to the particular task at hand. Gs -sDEVICE=png16m -dNOPAUSE -dBATCH -dSAFER -sOutputFile=jcsample.png jcsample-crop.pdf pdf libreoffice -headless -convert-to pdf jcsample.dxf However on the same sample file, the resulting images were scaled to fit centrally in a portrait page again, the solution may be to use an intermediate vector format e.g. Libreoffice -headless -convert-to jpg jcsample.dxf Libreoffice appears to work directly to either png or jpg libreoffice -headless -convert-to png jcsample.dxf The downside with inkscape is that the dxf import filter pops up a dialog to confirm the default scaling and encoding, making it not truly non-interactive: as far as I know there is not currently a way to prevent that, although there is an outstanding feature request for it (adding the -z or -without-gui switch doesn't seem to help). Or gs -sDEVICE=jpeg -dJPEGQ=100 -dNOPAUSE -dBATCH -dSAFER -r100 -sOutputFile=jcsample.jpg jcsample.eps What did work for inkscape was converting to Encapsulated PostScript first inkscape -f jcsample.dxf -export-eps=jcsample.epsĪnd then converting eps to png or jpeg, for example using Ghostscript gs -sDEVICE=png16m -dNOPAUSE -dBATCH -dSAFER -sOutputFile=jcsample.png jcsample.eps inkscape -f jcsample.dxf -export-png=jcsample.png


Inkscape also appears to support the same functionality e.g. However the result was an empty file in the first case and corrupted in the second, on the sample file that I tried - you may have better luck. Or, with explicit output dimensions, dia jcsample.dxf -s 744x1052 -e jcsample.png

There are a number of vector drawing programs that support DXF files to varying degrees, and have commandline convert capabilities, including dia, inkscape, and even libreoffice.ĭia appears to support dxf input and png output e.g.
