How to convert and view EMF and EMZ files
EMF and EMZ are Windows Compressed Enhanced Metafile graphics formats developed by Microsoft. These formats may contain both vector and raster images, but they are primarily used for vector images. EMF is Enhanced Windows Metafile Format - it contains Windows MetaFile binary data. EMZ is a Windows Compressed Enhanced Metafile format - it also contains Windows MetaFile binary data but compressed with GZIP.
EMF files can be opened with Microsoft Paint, Adobe Illustrator, InkScape. EMZ files can be opened with the same applications but should be unpacked before open.
These file formats are part of a series of Windows Metafile formats:
Windows Metafile formats: WMF - Windows Metafile Format WMZ - Windows Metafile Compressed (GZipped) Format See How to convert and view WMF and WMZ files
Windows Metafile Enhanced formats: EMF - Windows Metafile Enhanced Format EMZ - Windows Metafile Enhanced Compressed (GZipped) Format
In case you need to view an EMF(EMZ) file in a browser or a standard image or PDF viewer application, you can convert it to HTML, JPEG, PNG PDF format with GroupDocs.Viewer for .NET.
How to convert EMZ files
Convert EMZ to HTML
To convert EMZ files to HTML with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.emz"))
{
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("output.html");
viewer.View(options);
}
The following screenshot shows the output HTML file opened in a browser.
Convert EMZ to JPG
To convert EMZ files to JPG with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.emz"))
{
JpgViewOptions options = new JpgViewOptions("output.jpg");
viewer.View(options);
}
The following screenshot shows the output JPG file opened in a Windows Photo Viewer application.
Convert EMZ to PNG
To convert PLT/HPG files to PNG with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.emz"))
{
PngViewOptions options = new PngViewOptions("output.png");
viewer.View(options);
}
The following screenshot shows the output PNG file opened in a Windows Photo Viewer application.
Convert EMZ to PDF
To convert EMZ files to PDF with GroupDocs.Viewer for .NET use following code:
using (Viewer viewer = new Viewer("sample.emz"))
{
PdfViewOptions options = new PdfViewOptions("output.pdf");
viewer.View(options);
}
The following screenshot shows the output PDF file opened in an Acrobat Reader.
More resources
View EMF/EMZ files Online
Along with full-featured .NET library we provide simple but powerful free online Apps. View EMF and EMZ files online with GroupDocs Viewer App.
GitHub Examples
You may easily run the code above and see the feature in action in our GitHub examples:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example