Your company here — click to reach over 10,000 unique daily visitors

ezdxf-draw - Man Page

ezdxf draw – draw and convert DXF files by the Matplotlib backend


ezdxf draw [-h] [--backend {matplotlib,qt,mupdf,custom_svg}] [--formats] [-l LAYOUT] [--background {DEFAULT,WHITE,BLACK,PAPERSPACE,MODELSPACE,OFF,CUSTOM}] [--all-layers-visible] [--all-entities-visible] [-o OUT] [--dpi DPI] [-f] [-v] [FILE]


Positional Arguments


DXF file to view or convert

Optional Arguments


show a help message and exit

--backends {matplotlib,qt,mupdf,custom_svg}

choose the backend to use for rendering


show all supported export formats and exit

-l LAYOUT, --layout LAYOUT

select the layout to draw, default is “Model


choose the background color to use


draw all layers including the ones marked as invisible


draw all entities including the ones marked as invisible (some entities are individually marked as invisible even if the layer is visible)

-o OUT--out OUT

output filename for export

--dpi DPI

target render resolution, default is 300


overwrite the destination if it already exists


give more output


See ezdxf(1).


See ezdxf(1).


Convert the DXF file “gear.dxf” into a SVG file by the Matplotlib backend:

$ ezdxf draw -o gear.svg gear.dxf

Show all output formats supported by the Matplotlib backend on your system. This output may vary:

$ ezdxf draw --formats

eps: Encapsulated Postscript
jpg: Joint Photographic Experts Group
jpeg: Joint Photographic Experts Group
pdf: Portable Document Format
pgf: PGF code for LaTeX
png: Portable Network Graphics
ps: Postscript
raw: Raw RGBA bitmap
rgba: Raw RGBA bitmap
svg: Scalable Vector Graphics
svgz: Scalable Vector Graphics
tif: Tagged Image File Format
tiff: Tagged Image File Format

See Also


ezdxf-audit(1), ezdxf-view(1), ezdxf-browse(1), ezdxf-browse-acis(1), ezdxf-strip(1), ezdxf-config(1), ezdxf-info(1), ezdxf-hpgl(1)

Referenced By

ezdxf(1), ezdxf-audit(1), ezdxf-browse(1), ezdxf-browse-acis(1), ezdxf-config(1), ezdxf-hpgl(1), ezdxf-info(1), ezdxf-strip(1), ezdxf-view(1).

March 2024