dxf2image

Crates.iodxf2image
lib.rsdxf2image
version0.1.1
sourcesrc
created_at2021-09-27 11:06:02.934233
updated_at2021-09-28 04:14:52.278347
descriptiondxf2image is a fast and efficient dxf to image converter!
homepage
repositoryhttps://github.com/k-fujino-kohei/dxf2image
max_upload_size
id456946
size105,803
Kohei Fujino (k-fujino-kohei)

documentation

README

Crates.io

dxf2image

dxf2image is a fast and efficient dxf to image converter!

Installation

Put the following in your Cargo.toml

[dependencies]
dxf2image = "0.1"

If you want png, please add png to the features

[dependencies]
dxf2image = { version = "0.1", features = ["png"] }

Usage

use dxf2image::{dxf2svg, dxf2png};

fn main() {
    let dxf = "sample.dxf";

    // Convert to svg
    let svg = "sample.svg";
    dxf2svg(dxf, svg).unwrap();

    // Convert to png
    let png = "sample.png";
    dxf2png(dxf, png).unwrap();
}

Note

For supported dxf, see dxf-rs.

License

Distributed under the Apache License. See LICENSE for more information.

Commit count: 26

cargo fmt