emf
emf
¶
Image header parser for EMF (Enhanced Metafile) images.
An EMF file opens with an EMR_HEADER record whose ENHMETAHEADER structure carries
both the physical extent of the picture and the resolution of the device it was recorded
against. Both are needed: the extent alone says how large the picture is, and the device
resolution is what turns that into a pixel count that agrees with what Word shows.
Emf
¶
Bases: BaseImageHeader
Image header parser for EMF images.
Source code in src/docx/image/image.py
content_type
property
¶
MIME content type for this image, unconditionally image/x-emf for EMF
images.
from_stream
classmethod
¶
Return an Emf instance with header properties parsed from stream.