We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

DWG image is not rendering all elements in PDF conversion

The attached DWG file does not convert all elements to PDF. I am using the code below:

Using Image = Aspose.CAD.Image.Load(ESIFile)
Dim rasterizationOptions As New Aspose.CAD.ImageOptions.CadRasterizationOptions
rasterizationOptions.PageWidth = 1600
rasterizationOptions.PageHeight = 1600
rasterizationOptions.AutomaticLayoutsScaling = True
rasterizationOptions.NoScaling = False

                                    'rasterizationOptions.AutomaticLayoutsScaling = True
                                    Dim options As New Aspose.CAD.ImageOptions.PdfOptions
                                    options.VectorRasterizationOptions = rasterizationOptions

                                    Image.Save(PathToUse, options)
                                End Using

CW3965 (CKHK4368).zip (238.4 KB)

@salemantulsa

Can you please try using the latest version of Aspose.CAD for .NET 21.9 and if there is still an issue then please share the output file that you obtain along with comparison snapshot highlighting the missing elements in exported output.

I am using 21.9. Attached is the wrong output and the correct output. DWG wrong output.PDF (2.5 MB)
DWG Correct Output.jpg (248.6 KB)

@salemantulsa

It seems to be an issue with API. A ticket with ID CADNET-8356 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.