We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

JPG converted from DWG is blank

Hello,
We are working on project for our customer. We try to use Aspose.CAD for .Net to convert dwg to jpg and expirience problems with some files: result image is blank. Also, your online viewer displays the same for these files. At the same time, DWG Fast View dispays them correctly. You can find example of such file here: https://drive.google.com/file/d/1_rOjQAd_TMNMFn7QIYH4uUm86pWydaMQ/view?usp=sharing
Code used to convert:

           using (var image = Aspose.CAD.Image.Load(sInputCAD))
            {
                // create an instance of CadRasterizationOptions and set page height & width
                var rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions()
                {
                    PageWidth = 600,
                    PageHeight = 800,

                    
                    
                };

                // create an instance of JpegOptions
                var options = new Aspose.CAD.ImageOptions.JpegOptions();

                //options.

                // set the VectorRasterizationOptions property as CadRasterizationOptions
                options.VectorRasterizationOptions = rasterizationOptions;

                // export DWG to JPEG
                image.Save(sOutputJpg, options);
            }

Please, help ASAP.

@websio

I have worked with the sample file shared and it seems to be an issue with API. A ticket with ID CADNET-8219 has ben created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue wil be fixed.

1 Like

Do you have some news for us? The issue is urgent

@websio

I regret to share that present the issue is still unresolved. We request for your patience and will share the good news with you as soon as it will be fixed.