.NET library for converting CGM files

I worked on a utility to convert various files to PDF to simplify printing / emailing. I am trying to add support for CGM files but could not find any libraries to help me do this.

Is this something I can do initially inside C #? Or are there some .NET libraries that can help me convert CGM files?

+5
converter
source share
2 answers

Jcgm

Using IKVM , you can use Java JCGM .

It supports the rendering of a Graphics Graphics object and is independent of other libraries. I'm not sure if IKVM will support all the necessary Swing calls, but definitely got support for some: AWT / Swing Little Little Less Unsupported

+2
source share

In the past employer, we used the LIB_CGM library from the SDI a little:

http://www.sdicgm.com/cgm_output_library.html

It was written in C, so although it is not native .NET, you should use it from C # as an unmanaged extension.

Google also came up with another C implementation:

http://www.cgmlarson.com/industry/cgm_generator_library.php

I found CGM pain - this is one of those formats that has many vendor extensions or industry-specific applications. I was in the geophysics / seismic industry where CGM was still used a lot, but with extensions! Since CGM seems to be mainly used in industry applications (e.g. CGM + in the seismic industry), I suspect sellers are more interested in C applications that are cross-platform rather than PC solutions (e.g. .NET ) Typically, users want to use their third-party libraries on everything from large iron supercomputers to desktops (although we have been actively working on the functions of supercomputers!).

+1
source share

All Articles