Poor Quality upon Converting SVG to DXF – Aspose.Imaging 25.4.0

Poor Quality - SVG - DXF conversion.zip (3.9 MB)

Dear Aspose Support,

We are experiencing significant quality issues when converting SVG files to DXF using Aspose.Imaging v25.4.0. These issues are creating serious downstream problems with our CNC cutting machine vendor, who relies on accurate and clean geometry.

Key Problems Observed:

  • Some lines in the resulting DXF are no longer collinear, despite being straight and aligned in the original SVG.
  • Certain entities fail to intersect where they should — creating open gaps.
  • Others overlap or intersect excessively, leading to geometry artifacts.
  • The output geometry does not consistently maintain the precision or structure required for reliable cutting.

Process Limitations:

In previous workflows, we were able to detect and correct these artifacts post-conversion using custom cleanup tools. However, in our current process, we no longer have the ability to intervene downstream. These geometry issues now must be resolved at the conversion stage, and cannot be reliably fixed after export.

This behavior is breaking tool paths and preventing proper nesting and execution on CNC equipment.

In the attachments you can identify a ZIP with the folliwng:

  • The original SVG
  • The converted DXF
  • A video indicating all the issues resulted after the conversion

Going forward, we would appreciate:

  • Any guidance on improving conversion precision.
  • Recommended settings or code examples for stricter geometry fidelity.
  • Confirmation whether this is a known issue or limitation in the current release.

Please let us know how to proceed or if additional sample files would help with investigation.

Thank you,
Bogdan

@bogdanmarian

Can you please provide the specific code you are using for the SVG to DXF conversion, as well as any settings you have applied during the process?

Regarding the code, we set the TestAsLines = false and ConvertTextBeziers = false on the DxfOptions object.

On the DxfOptions object we set the raasterizationOptions as SvgRasterizationOptions where we only set the PageWidth, PageHeight and BackgroundColor.
Then we save the VectorImage as image.Save(outputStream, exportOptions).

@bogdanmarian
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): IMAGINGNET-7663

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.