Failed to convert to pdf from dwf file with Aspose CAD 19.5



I’m trying to do convert with Aspose CAD, but have a problem with a dwf file.

My samples code:

string outputFile = “output.pdf”;
string inputFile = “ABC1-A5-SecAA.dwf”;
Aspose.CAD.Image image= (DwfImage)Aspose.CAD.Image.Load(inputFile );
Aspose.CAD.ImageOptions.CadRasterizationOptions rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions();
rasterizationOptions.BackgroundColor = Aspose.CAD.Color.White;
rasterizationOptions.PageWidth = image.Width;
rasterizationOptions.PageHeight = image.Height;

Aspose.CAD.ImageOptions.PdfOptions pdfOptions = new Aspose.CAD.ImageOptions.PdfOptions();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(outFile, pdfOptions);
catch(Exception e)
string errorMsg = e.Message;

When trying to save the image (Image.Save()), I got an exception: “Image saving failed.”

I’m using Aspose Cells NET 19.5 and here is my samle: (58.3 KB)

Please check and give me feedback about this problem.

Thank you



I have worked with the file shared by you and have been able to observe the issue specified. An issue with ID CADNET-826 has been 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 will be fixed.


Hi @Adnan.Ahmad
How about this issue? I saw that the status is closed.
I also try on version 19.7 and still meet that problem.
Thank you.



I have verified the issue status from our issue tracking system and like to share that the concerned issue has been marked as resolved in upcoming Aspose.CAD for .NET 19.9. We request for your patience till the time the product is available online.


ok, thanks for your support.