Skip to content

emf-converterEMF and WMF to PNG or SVG

A TypeScript library with no runtime dependencies. Runs in the browser, in Web Workers and in Node.js.

Live demo ​

Select or drop an .emf or .wmf file. The file is converted in your browser and is not uploaded anywhere.

Example ​

ts
import { convertMetafileToDataUrl, convertMetafileToSvg } from 'emf-converter';

const buffer: ArrayBuffer = await file.arrayBuffer();

const png = await convertMetafileToDataUrl(buffer); // "data:image/png;base64,..."
const svg = await convertMetafileToSvg(buffer); // "<svg ...>...</svg>"

See Getting started for installation and Usage for more examples.

Released under the Apache-2.0 License.