| Crates.io | dxf_to_svg |
| lib.rs | dxf_to_svg |
| version | 1.0.0 |
| created_at | 2024-12-23 19:59:40.742744+00 |
| updated_at | 2024-12-31 13:04:59.53645+00 |
| description | A simple tool for converting DXF Entities into a string SVG |
| homepage | |
| repository | https://github.com/raisfeld-ori/dxf_to_svg |
| max_upload_size | |
| id | 1493379 |
| size | 50,996 |
A simple rust Package for converting dxf into an SVG.
To convert a .dxf file:
fn file_to_svg() {
let svg = dxf_file_to_svg("path/to/file.dxf", None);
}
To turn an existing vec of dxf::entities::Entity into an SVG:
fn vec_to_svg(vec: Vec<&Entity>){
return dxf_to_svg(vec, None);
}
You can also replace the None for the second argument with dxf_to_svg::SvgOptions in order to style the SVG a bit.
I quit working on this project and instead started using CloudConvert instead. Works way better, but costs some money
However, feel free to continue using this project. It's not perfect but it still works fairly well.