Hello, I’m using AsposeCad 22.3.0 for .NET to convert DXF to PDF.
This is my code:
string inputPath = @"C:\Users\john.doe\Desktop\testAspose\test2.dxf";
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(inputPath))
{
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.UnitType = UnitType.Millimeter;
rasterizationOptions.DrawType = CadDrawTypeMode.UseObjectColor;
// output dimensions
rasterizationOptions.PageWidth = 420;
rasterizationOptions.PageHeight = 297;
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(msOutput, pdfOptions);
}
I got an exception in the creation of Aspose.CAD.Image
object. The exception message is:
ReflectionTypeLoadException: Unable to load one or more of the requested types.
I got the same exception with both the overloads of Aspose.CAD.Image.Load()
method, path string or stream as parameter.
I got this exception with AsposeCad for .NET ver. 22.3.0 and 22.4.0. With ver 22.2.0 it was all fine.
My DXF input file here.
test2.zip (2.2 KB)
Please, fix it asap.
Regards.