pythonpdfsvginkscapedxf

How to fix 4 arc issue when converting pdf to dxf using inkscape?


I'm trying to convert a pdf file to a dxf file using the inkscape command. I converted a pdf file to a svg file first and converted this to dxf file.

This is the inkscape command I've used:

inkscape input.svg --export-type=dxf --export-extension=org.ekips.output.dxf_outlines -o output.dxf

As you can see, instead of one perfect circle, I got a circle made up of 4 arcs.

circles

I want a smooth, single-componented circle. How can I fix this issue?


Solution

  • There's no circle primitive in PDF. All circles in PDF have to be made from several curves (four is usual). So, unless your convertor has a way to detect and reconstruct circles, you're stuck.