WMF support

Informations

Author: Martin Hall-May
License: FPDF

Description

This script allows a Windows Metafile (WMF) image to be imported into the PDF.

The function ImageWMF() takes the same parameters as Image(). It scales and places the image appropriately on the page.

WMF files contain vector data described in terms of Windows Graphics Device Interface (GDI) commands. There are approximately 80 different GDI commands allowed for in the WMF standard. This script interprets only a small subset of these, but is sufficient to display most WMF images. Please feel free to add further functionality.

Note: only little-endian architectures (typically Intel processors) are supported.