Hi, Issue appear with and without license, doesn’t matter.
Issue is happening when I export from DWG to Image.
here it is the github link with my code:
DWG file included on the repository.
How to run: open the API and upload the file
image.png (219.3 KB)
Running with Docker or WSL:
image.png (202.6 KB)
it breaks on Image.Load
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(stream))
{
// Create an instance of CadRasterizationOptions
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
// Set page width & height
rasterizationOptions.PageWidth = 1200;
rasterizationOptions.PageHeight = 1200;
// Create an instance of JpegOptions for the resultant image
ImageOptionsBase options = new JpegOptions();
// Set rasterization options
options.VectorRasterizationOptions = rasterizationOptions;
// CAD to JPG
image.Save(outputfile, options);
}