Created files are corrupted using aspose.cad (evaluation)

i am testing out aspose.cad and have created a dwf and pdf from a dwg but when i try to open the dwf in Autodesk Design Review or the PDF in adobe, both say the file is corrupted? I just added the aspose.cad dll via nuget and used the below code. Do i need to do something else?

Dim outputdirectory As String = "C:\Users\ConnorFerguson\Desktop\PDF\"
        Dim inputFile As String = "C:\Users\ConnorFerguson\Desktop\Drawing1.dwg"

        Using cadFile As CadImage = Image.Load(inputFile)
            cadFile.Save(outputdirectory & "Acad.dwf")
        End Using

Hello, can you provide the input file you are using for this test

Hi, input file attached. AutoCAD 2022 dwg.Drawing1.zip (25.6 KB)

Hi, i fixed this by adding the DWF settings object to the save function

1 Like