DXF to PNG API

Raster images from DXF drawings, at whatever resolution you need.

DXF describes geometry, not pixels. To show a part in a web app, drop it into a PDF report, or attach it to an order confirmation, you need an actual image. This endpoint renders the drawing server-side and hands back a finished PNG.

Example

curl -X POST "https://apimycad.com/v1/dxf-to-png" \
  -H "X-API-Key: YOUR_KEY" \
  -F "file=@part.dxf" \
  -o part.png

Resolution and background

ParameterValuesUse
dpi72–600 (default 300) 72–96 for list thumbnails, 150 for on-screen previews, 300+ for print and PDF embedding.
bgwhite (default), black, transparent Transparent is the one to reach for when overlaying the part on a coloured card or a dark UI.
curl -X POST "https://apimycad.com/v1/dxf-to-png?dpi=96&bg=transparent" \
  -H "X-API-Key: YOUR_KEY" \
  -F "file=@part.dxf" -o thumb.png

Built for real shop-floor files

DXF files that come from customers are rarely pristine — older exporters leave small structural inconsistencies that make strict parsers give up. Files are audited and repaired on the way in where possible, rather than rejected. Splines, arc bulges, hatches, dimensions and layer colours all render; text is drawn as vector outlines, so output never depends on server fonts.

Common uses

Want it to stay sharp at any zoom?

Use DXF to SVG instead — same renderer, vector output, and the elements stay stylable and clickable in a browser.

Related conversions

Read the API documentation