• Reassembles a contiguous EMF from a WMF that embeds it via META_ESCAPE_ENHANCED_METAFILE ("WMFC") records.

    Excel OLE CF_ENHMETAFILE presentations are frequently stored as such a WMF wrapper. Taking a contiguous nBytes slice starting at the first embedded EMR_HEADER pulls WMF escape framing into the EMF stream and corrupts later EMR records — converters then only replay the first ~screen of GDI text (e.g. 8 Excel rows) while the canvas stays mostly blank.

    Parameters

    • data: Uint8Array

    Returns Uint8Array | undefined

    The concatenated EMF bytes, or undefined when no WMFC chunks are found.