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: 3d - 2018.dwg - Google Drive
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.