Skip to content

Dexus-Forks/dxf_to_svg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dxf_to_svg

A simple rust Package for converting dxf into an SVG.

Usage

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.

  • use_bounds -> to false if you don't want the bounding box to fix the screen
  • padding -> the SVG's padding

will I continue working on this?

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%