Convert CGM to Vector SDK

Our Convert CGM to Vector SDK provides a "seamless" format conversion process for applications that need to convert CGM to vector images for publishing.

Convert CGM to Vector SDK accurately converts ISO CGM V1-V4 files to vector formats: SVG, PDF, EPS. Program controls for scaling, color or monochromatic, line width, margins...

Fast Implemetation; Simply, setup the conversion parameters and then call a single function which converts the CGM file to your target format.

Convert CGM to Vector SDK includes sample code and the converter library (DLL), which can be utilized with your C, C++ or Visual Basic applications.

Example Code (C++):

wchar_t input_file[512], output_file[512], log_file[512], config_file[512];
CGM2VECTOR_PARAMS params;

params.width = 8.5; // page width in inches
params.height = 0; // page height using aspect ratio of CGM * width
params.units = CGM2VECTOR_INCHES; // page width & height in inches
params.demoflag = 0; // no demo banner in output
params.lineScale = 1; // line width scale factor
params.logMode = 0; // 1= log to console/file
params.uncompressed = 0; // compressed
params.colorMode = 0; // 0= do nothing, 1= greyscale, 2= greyscale enhanced
params.reverseVideo = 0; // 0= do nothing, 1= reverse black and white
params.mediaColor = 0; // 0= do nothing, 1= black, 2= white
params.boundsCheckRatio = 0;
params.outputType = ot; // 0= PDF, 1=EPS, 2= SVG
params.marginSize[0] = 0;
params.marginSize[1] = 0;
params.marginUnits = CGM2VECTOR_PIXELS;

error = cgm2vector(input_file, output_file, log_file, config_file, ¶ms);


Platforms: Windows XP, Vista, 7, 8 and 10; 32 and 64 bit; Linux 32 and 64 bit
Input: CGM V1-V4, CGM+
Output: EPS, PDF and SVG
Profiles: ATA, PIP, S1000D, and WebCGM