Start viewing 170+ popular document formats in your .NET applications using GroupDocs.Viewer for .NET APIs by adding a few lines of code. Developers can easily display PDF, Word Processing, Excel Spreadsheet, Presentation, Visio, Project, Outlook and many other popular document formats in HTML5, image or PDF modes. The document rendering is fast, identical to the original source file, and it does not require installing Microsoft Office or any other external libraries.
GroupDocs.Viewer makes it easy for .NET developers to add CGM file viewing feature in their applications by implementing a few easy steps.
GroupDocs.Viewer for .NET APIs are supported on all major platforms and operating systems. Before executing the code below, please make sure that you have the following prerequisites installed on your system.
// Instantiate viewer
using (Viewer viewer = new Viewer("sample.cgm"))
{
// Set view options
ViewOptions viewOptions = new PngViewOptions();
// Convert file to PNG and check the output in the current directory
viewer.View(viewOptions);
}
Display CGM file right now by visiting GroupDocs.Viewer Live Demos website.
The live demo has the following benefits
No need to download API
No need to write any code
Just upload the source file
Get download link to save the file
Computer Graphics Metafile (CGM) is free, platform-independent, international standard metafile format for storing and exchanging of vector graphics (2D), raster graphics, and text. CGM uses object-oriented approach and many function provisions for image production. CGM uses these object-oriented characteristics for remolding graphical elements to render an image. A metafile contains necessary information that defines other files. In CGM, a text based source file contains all graphical elements that can be later compiled into a binary file. Basically CGM is a way to facilitate 2D graphical data interchange, independent from any particular platform, or device.
Read More About CGM File FormatMulti format documents and images viewer API for .NET. View some of the popular file formats below without any external viewers.
(Microsoft Word Document)
(Microsoft Word Macro-Enabled Document)
(Microsoft Word Open XML Document)
(Microsoft Word Document Template)
(Microsoft Word Macro-Enabled Template)
(Word Open XML Document Template)
(Rich Text File Format)
(Plain Text File Format)
(Microsoft Excel Binary File Format)
(Microsoft Excel Open XML Spreadsheet)
(Microsoft Excel Macro-Enabled Spreadsheet)
(Microsoft Excel Binary Spreadsheet File)
(Microsoft Excel Open XML Template)
(Tab Separated Values File)
(Microsoft Excel Macro-Enabled Add-In)
(Comma Separated Values File)
(PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(PowerPoint Open XML Presentation)
(PowerPoint Open XML Slide Show)
(Microsoft PowerPoint Open XML Template)
(Microsoft PowerPoint Template)
(Microsoft PowerPoint Presentation)
(Microsoft PowerPoint Slide Show)
(Adobe Portable Document Format)
(Open XML Paper Specification)
(LaTeX Source Document)
(Open Document Spreadsheet)
(OpenDocument Presentation File Format)
(Origin Graph Template)
(Open Document Text)
(Open Document Template)
(Microsoft Visio 2003-2010 XML Drawing)
(Tagged Image File Format)
(JPEG Image)
(Portable Network Graphic)
(Graphical Interchange Format File)
(Bitmap File Format)
(Microsoft Icon File)
(Adobe Photoshop Document)
(Raster Web Image File Format)
(Scalable Vector Graphics File)
(JPEG 2000 Core Image File)
(Microsoft Project Document)
(Microsoft Project Template)
(Hyper Text Markup Language)
(MIME Encapsulation of Aggregate HTML)
(MIME Encapsulation of Aggregate HTML)
(Microsoft Outlook E-mail Message)
(E-mail Message)
(Microsoft OneNote)
(Windows Metafile)
(Windows Enhanced Metafile)
(Adobe Photoshop Document)
(Microsoft Visio 2003-2010 Drawing)
(Microsoft Visio Drawing)
(Microsoft Visio 2003-2010 Stencil)
(Microsoft Visio 2003-2010 XML Drawing)
(Microsoft Visio 2010 Web Drawing)
(Digital E-Book File Format)