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}}'const res = await fetch("https://api.switchfile.io/v1/convert", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SWITCHFILE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"url":"https://example.com/input.emf","to":"eps","options":{"width":1280}}),
});
console.log(await res.json());From 5 formats
passwordstringdefault: not setPassword to open the file.
widthintegerdefault: not setWidth in pixels; the drawing keeps its shape. At most 20000.
1 to 20000 px
heightintegerdefault: not setHeight in pixels; the drawing keeps its shape. At most 20000.
1 to 20000 px
pixel_densityintegerdefault: 96Pixels 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
widthintegerdefault: not setWidth in pixels; the drawing keeps its shape. At most 20000.
1 to 20000 px
heightintegerdefault: not setHeight in pixels; the drawing keeps its shape. At most 20000.
1 to 20000 px
pixel_densityintegerdefault: 96Pixels per inch used to turn pixel sizes into a page size. 96 is the SVG standard. At most 2400.
1 to 2400