DWG to PDF: Hatches flipped and issues with german chars: äöü


#1

Hello,

I am using the trial version of Aspose.CAD to convert a dwg file to pdf. It works quite easy and fast but there are two big issues with the pdf file.

First of all: hatches are flipped. Every hatch in the drawing seems to be mirrored vertically.

Second issue: German chars like ä, ö and ü are broken. The dots are missplaced and often printed above the next char or way to much above.

Everything seems to be fine within TrueView and BricsCad, so I guess it is not an error of the dwg file.


#2

@johann.weilbach,

Can you please share source file along with sample code, environment details and generated result so that we may further investigate to help you out.


#3

@Adnan.Ahmad

Here we go.

The source code:

Using image As Image = Image.Load("C:\Users\stefan.christ\Desktop\Converter_Test\Vergleich\Gulia.dwg")
  Dim rasterizationOptions As ImageOptions.CadRasterizationOptions = New ImageOptions.CadRasterizationOptions()
  rasterizationOptions.PageWidth = 1200
  rasterizationOptions.PageHeight = 1200

  Dim options As ImageOptions.PdfOptions = New ImageOptions.PdfOptions()
  options.VectorRasterizationOptions = rasterizationOptions

  image.Save("C:\Users\stefan.christ\Desktop\Converter_Test\Vergleich\Gulia.pdf", options)
End Using

sample.zip (1.4 MB)

As you can see the hatches are flipped and the dots above the german umlauts are out of sync.


#4

@johann.weilbach,

I have worked with the sample file shared by you and have been able to observe the issue specified. An issue with ID CADNET-775 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue ill be fixed.


#5

The issues you have found earlier (filed as CADNET-775) have been fixed in this update.