RichStafford
Registered:1473789612 Posts: 10
Posted 1473791417
Reply with quote
#1
Apologies for the repeat, I initially posted this to the ViewCompanion area. I'm trying to use the sample c# tool to generate a color PDF output file. I've set the MonochromeMode to false, and tried a number of different bits per pixel values (8,24,32), but the output is always mono. I've tried formats of PDF, PDFRASTER and JPG. Viewing the same CGM using ViewCompanion shows a color image. Here's my version of the code. what do I need to do to get a color image? I'm using the eval version, do I need to purchase before I can generate color? scConverterLib.Converter myconverter = new scConverterLib.Converter(); if (myconverter != null) { myconverter.PDFLargeFormat = 1; myconverter.PDFWriteFormat = 0; myconverter.PDFLayers = 1; myconverter.MonochromeMode = false; myconverter.TIFFSingleStrip = 1; myconverter.Convert(args[0], //Input file name args[1], //Output file name args[2], //Format, e.g.: TIFF, PDF, CALS 1.0, //Scale 24, //Bits per pixel - used only for raster output formats 200); //Resolution (dots per inch) - used only for raster output formats } Rich
softcomp
Administrator
Registered:1370695867 Posts: 430
Posted 1473838560
Reply with quote
#2
Hi, Would it be possible to send us a sample CGM file we could look at? Your code do look correct. -Support
RichStafford
Registered:1473789612 Posts: 10
Posted 1473858001
Reply with quote
#3
Once I added the scConverter Developer License serial number, I started getting proper color output. Thanks.