I use a custom JS file to convert DWG/DXF files to PNG via the command line:
qcadcmd.com -platform offscreen -no-gui -autostart scripts/dwg2png.js -input input.dwg -output output.png 2>error.log
The JS file can be loaded and executed, but the conversion to PNG did not succeed.
Additionally, how to suppress debug messages in the console output and keep only errors?
Environment
Windows10
Qcad 3.23.3 pro
53bfe443b0e82.dwg (333 KB)
dwg2png.js (7.11 KB)