Skip to main content

Module emf

Module emf 

Source
Expand description

EMF (Enhanced Metafile) to SVG conversion for the vector path-drawing record subset: window/viewport mapping, paths, solid brushes/pens, positioned Unicode text, solid raster-operation fills, saved device contexts, fill modes, and clipping. Records outside the supported set abort the conversion so the caller can fall back to the unsupported-image placeholder instead of rendering something wrong.

Functionsยง

emf_to_svg
Converts an EMF byte stream to an SVG document when every record falls in the supported vector subset; returns None otherwise so callers keep the placeholder fallback.