Importing vectors into KiCad

Getting from EPS to DXF that works in KiCad.

Using Perl and Math::CG with PostScript::Simple I've generated cutout lines for a base plate of a DIN rail case:

Next step was to get it into a KiCad as an Edge Cut layer. There are only two import options in KiCad: Specctra adn DXF. Looked around and InkScape had DXF "Save As", but it failed with a Python error dump. Finally searching around the web found out that there is a command line tool to convert PostScript to DXF → pstoedit and by:

pstoedit -f dxf:-mm base-plate.eps base-plate.dxf

I was then able to import this vector drawing into KiCad: