dxf_circle_zoom_issue.zip (182.9 KB)
Hello,
We’re having an issue when we convert a SVG file to DXF.
It seems that circle elements from the SVG are not correctly rendered in the DXF file.
Could you please take a look and provide us a solution to this problem?
We attached a zip to this thread containing:
- the source SVG file, as you can see it has 6 circles (3 vertical in the left side, and 3 vertical in the right side)
- the resulting dxf file (Autodesk Viewer | Free Online File Viewer)
- a video of the circle when we zoom in (there is an extra line as you can see)
We used Aspose.Imaging 25.4.0
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).
Thank you,
Victor
@Victor.Ionescu
It seems you are experiencing issues with the conversion of SVG circles to DXF format using Aspose.Imaging. The circles are not rendering correctly, and you have already set the TestAsLines
and ConvertTextBeziers
options to false in your DxfOptions
object.
To troubleshoot this issue, consider the following steps:
-
Check DxfOptions Settings: Ensure that the DxfOptions
settings are appropriate for your SVG content. You might want to experiment with setting TextAsLines
to true and ConvertTextBeziers
to true, as these options can sometimes yield better results for vector graphics.
-
Bezier Point Count: If you are using curves or complex shapes, adjusting the BezierPointCount
might help improve the accuracy of the conversion. A higher count can provide a smoother representation of curves.
-
SVG Rasterization Options: Since you are using SvgRasterizationOptions
, ensure that the PageWidth
, PageHeight
, and BackgroundColor
are set correctly. Sometimes, incorrect dimensions can lead to unexpected rendering issues.
-
Update Aspose.Imaging: If you are using version 25.4.0, consider updating to the latest version of Aspose.Imaging. There may have been bug fixes or improvements related to SVG to DXF conversions in newer releases.
-
Test with Simplified SVG: Try converting a simplified version of your SVG file with just one or two circles to see if the issue persists. This can help isolate whether the problem is with the specific SVG content or the conversion process itself.
If these suggestions do not resolve the issue, please provide additional details about the SVG file structure or any error messages you encounter during the conversion process. This information can help in diagnosing the problem further.
Feel free to reach out if you need more assistance!
Sources:
[1]: ExportToDxf.cs
Hi, @Victor.Ionescu
Thank you for using Aspose.Imaging.
We will check this issue ASAP
1 Like
@Victor.Ionescu
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-7632
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.