Hello, I’m using AsposeCad 21.9.0 for .NET to convert a DXF to PDF.
My DXF has some SOLID entities. I have two layouts: one has the front view of the model, the other has the left view.
I attach a zip with the source Dxf and the output Pdf. testAspose.zip (42.2 KB)
The front view is ok (pdf page 3), but the left view (pdf page 2) is not ok because the Solid entities are not filled.
This is my code
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(msInput))
{
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.UnitType = UnitType.Millimeter;
rasterizationOptions.DrawType = CadDrawTypeMode.UseObjectColor;
var pdfOptions = new Aspose.CAD.ImageOptions.PdfOptions();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(msOutput, pdfOptions);
}
Thanks