Skip to content
Docs menu

Copy the text

Your browser did not allow copying. The text below is selected: press Ctrl+C, or ⌘C on a Mac.

Convert to EPS

Encapsulated PostScript. The API converts 7 formats to EPS. These are the options, by input format.

curl https://api.switchfile.io/v1/convert \
  -H "Authorization: Bearer $SWITCHFILE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/input.emf","to":"eps","options":{"width":1280}}'

From 5 formats

emf, fodg, odg, otg, wmf

  • passwordstringdefault: not set

    Password to open the file.

  • widthintegerdefault: not set

    Width in pixels; the drawing keeps its shape. At most 20000.

    1 to 20000 px

  • heightintegerdefault: not set

    Height in pixels; the drawing keeps its shape. At most 20000.

    1 to 20000 px

  • pixel_densityintegerdefault: 96

    Pixels per inch used to turn pixel sizes into a page size. 96 is the SVG standard. At most 2400.

    1 to 2400

From 2 formats

dxf, svg

  • widthintegerdefault: not set

    Width in pixels; the drawing keeps its shape. At most 20000.

    1 to 20000 px

  • heightintegerdefault: not set

    Height in pixels; the drawing keeps its shape. At most 20000.

    1 to 20000 px

  • pixel_densityintegerdefault: 96

    Pixels per inch used to turn pixel sizes into a page size. 96 is the SVG standard. At most 2400.

    1 to 2400