EMF Viewer


If you have any comments or you want to report any bugs please send me an e-mail


installation instructions:

Unzip the file ( emfpg.zip ) and copy the file NPemfpg.dll into the plugins subdirectory of Navigator or Explorer. If this directory doesn't exist, create it in the same location as netscape.exe or iexplore.exe. Restart your Brwoser.

To verify that the plugin has been properly installed:

From the Help menu of Navigator, choose About Plug-ins. A list of all plug-ins in the directory is displayed. You should see:

Enhanced Metafile Viewer v1.0

File name: C:\...

Enhanced Metafile Viewer

Mime Type Description Suffixes Enabled
picture/emf Enhanced Metafile emf, wmf Yes

 

how to use the plugin in your pages:

Embedded plug-ins are loaded when the user encounters an HTML page with an embedded object with a MIME type registered by a plug-in. When loaded, an embedded plug-in is displayed as part of the HTML document in a rectangular subpart of the page. This is similar to how a GIF or JPEG image is embedded. Plug-in objects are embedded in an HTML page by using the EMBED tag. The syntax of the EMBED tag is:

<EMBED attributes> ... </EMBED>

Use the following attributes with the EMBED tag:

HEIGHT="value" defines the horizontal location of the plug-in in the HTML page. The unit of
measurement is optionally defined by the UNITS attribute.

PALETTE="value" indicates the mode of the plug-in's color palette. The value can be either
foreground or background (the default). The palette mode is only relevant on the Windows platform.

PLUGINSPAGE="URL" indicates the location of instructions on installing the plug-in. The value URL
is a standard uniform resource locator. The URL for EMFViewer is "http://www.wwwebspace.co.uk/~nkonstas/emfviewer/"

SRC="URL" indicates the location of the plug-in metafile. The value URL is a standard uniform resource locator.

TYPE="type" indicates the MIME type of the EMBED tag, which in turn determines which
plug-in is loaded to handle this EMBED tag. The value should be set to "picture/emf"

WIDTH="value " optionally defines the vertical location of the plug-in in the HTML page. The unit of
measurement is optionally defined by the UNITS attribute.

In addition to these standard attributes, the EMFViewer plug-in has an optional attribute that defined the default background color fot the plugin window:
BKGND="red_value,green_value,blue_value". If the attribute is not defined then the plugin is painted with the default background color.

examples:

<embed src="images/page1.wmf"
border="
0" width="700"
height="
465" bkgnd="0,0,0"
pluginspage="
http://www.wwwebspace.co.uk/~nkonstas/emfviewer/"
type="
picture/emf">

<embed src="http://www.someaddr.com/pres/intro.wmf"
border="
0" width="700"
height="
465"
pluginspage="
http://www.wwwebspace.co.uk/~nkonstas/emfviewer/"
type="picture/emf">