Converting from DXF to polyline is not possible as you will need to open a DXF file and add polylines manually using the built-in tools. For this operation you can try QCAD because it offers the possibility to add polylines to a DXF file.