mozman / ezdxf

Python interface to DXF
https://ezdxf.mozman.at
MIT License
938 stars 191 forks source link

Improve draw command #1000

Closed mbway closed 11 months ago

mbway commented 11 months ago

as part of fixing the svg and mupdf backends I wanted a way to use the backends. I have abstracted the file output logic from the ezdxf draw command so now all the backends can be used with ezdxf draw:

use with ezdxf draw <dxf_path> -o <out_path> --backend <backend>

this may be useful for development (to compare outputs between backends) and also may be useful for users because one backend may give the result that they want while another might not. Also one backend may be faster than another.

mbway commented 11 months ago

I'm aware that the handling of dpi is all over the place. Not sure how to bring them in line so that the same value produces roughly the same result regardless of the backend.