Hi! We just bought licenses for Imaging and OCR .NET and I am trying to implement the following code but I’m getting an error with the Load (file) function in Windev. Anyone implemented the Aspose .NET assembly in Windev? If you have a working example, please share…
Thx!
Dim sourceFilePath As String = myDir & “office.dwg”
Using image As Aspose.Imaging.Image = Aspose.Imaging.Image.Load(sourceFilePath)
'Create an instance of CadRasterizationOptions and set its various properties
Dim rasterizationOptions As New Aspose.Imaging.ImageOptions.CadRasterizationOptions()
rasterizationOptions.BackgroundColor = Aspose.Imaging.Color.White
rasterizationOptions.PageWidth = 1600
rasterizationOptions.PageHeight = 1600'Create an instance of PdfOptions Dim pdfOptions As New Aspose.Imaging.ImageOptions.PdfOptions() 'Set the VectorRasterizationOptions property pdfOptions.VectorRasterizationOptions = rasterizationOptions 'Export the DWG to PDF image.Save(myDir & <span class="code-quote" style="color: rgb(0, 145, 0); background-color: inherit;">"result.pdf"</span>, pdfOptions)
End Using