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:
matplotlib: bitmap and vector
qt: bitmap and vector (svg) (the output is created without opening a GUI)
mupdf: bitmap and vector
custom_svg: vector (svg)
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.
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.
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.