Free Support Forum - aspose.com

Post sales question for Aspose.Total for .NET - your Order ID: 190129204721


#1

Hello,

One of our customer in Korea, who has some technical questions regarding Aspose.Total for .NET
Could you please help to answer this customer’s question?

The customer want get help in Korean so I will forward your answer in translation.


Could you please confirm a follow source and attached 1070.cgm file?
There is not able to get correct result when converting cgm file to aspose.pdf. but on ABViewer trial version was working good.

Plase also checke attahce pdf fils:

1, Result in ABViewer trial version: 1070_1.pdf
2, Result in ABViewer retail version: 1070.pdf

// string dataDir = @“D:\Project\문서작업\제공자료”;

        string dataDir = @"D:\PARTS_MANUAL\320LC\02.PreBefor\04.1070";

        string sourcePath = string.Empty;
        string targetPath = string.Empty;
        string sPath = string.Empty;
        string fileName = string.Empty;

        string sourceFile = string.Empty;
        string targetFile = string.Empty;
        string targetFile1 = string.Empty;

        // DataRow dr = ((DataTable)gridControl1.DataSource).Rows[iCnt];
        //  fileName = dr[0].ToString().Trim() + "." + dr[2].ToString().Trim();
        
        sourceFile = dataDir + ".cgm"; ;

        targetFile = dataDir + ".pdf";
        targetFile1 = dataDir + ".jpeg";

        //CgmImportOptions options = new CgmImportOptions();
        
        try
        {
            PdfProducer.Produce(sourceFile, ImportFormat.Cgm, targetFile);
            Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(targetFile);


            using (FileStream imageStream = new FileStream(targetFile1, FileMode.Create))
            {
                Resolution resolution = new Resolution(300);
                JpegDevice jpegDevice = new JpegDevice(resolution, 100);
                jpegDevice.Process(pdfDocument.Pages[1], imageStream);
                imageStream.Close();
            }
        }
        catch (InvalidCgmFileFormatException ex)
        {
            //  Do something...
        }

Order ID: 190129204721
User Name: kyungtae_kim_hyundai-ce_com
Country: Korea, Republic Of

PURCHASE ORDER DETAILS:
ComponentSource Purchase Order ID: 444988
Order Date: 30-Jan-2019 02:43
Aspose.Total for .NET - Developer Small Business - 1 Developer and 1 Deployment Location - Includes Maintenance and Support (1 Year)
Quantity: 1
Country: Korea, Republic Of

Thank you in advance for your help.
Best regards,

Thomas Moon
ComponentSource
https://www.componentsource.com1070_1.pdf (218.0 KB)
1070.pdf (157.0 KB)


#2

@ThomasMBK

Thanks for contacting support.

We were unable to find any .cgm file attached with your post. Would you please make sure to ZIP your CGM file in an archive and upload it here. We will test the scenario in our environment and address it accordingly.


#3

Can you plase download the .cgm file for our FTP below?

ftp://j4p4n-up104d:J4p4nS3cur3P455!@ftp.componentsource.co.jp/1070.cgm

Thank you in advance for your help.
Best regards,

Thomas Moon
ComponentSource