Skip to content

Commit 42fa9d2

Browse files
committed
Bump version
1 parent c95fa32 commit 42fa9d2

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "svg2pdf"
3-
version = "0.1.0"
3+
version = "0.2.1"
44
authors = ["Martin Haug <[email protected]>"]
55
edition = "2021"
66
description = "Convert SVG files to PDFs."

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The conversion will translate the SVG content to PDF without rasterizing it,
1414
so no quality is lost.
1515

1616
## Example
17+
1718
This example reads an SVG file and writes the corresponding PDF back to the disk.
1819

1920
```rust
@@ -27,7 +28,22 @@ let pdf = svg2pdf::convert_str(&svg, svg2pdf::Options::default()).unwrap();
2728
std::fs::write("target/example.pdf", pdf).unwrap();
2829
```
2930

31+
## CLI
32+
33+
This crate also contains a command line interface. Install it by running the command below:
34+
35+
```bash
36+
cargo install svg2pdf --features cli
37+
```
38+
39+
You can then convert SVGs to PDFs by running commands like these:
40+
41+
```bash
42+
svg2pdf your.svg
43+
```
44+
3045
## Supported features
46+
3147
- Path drawing with fills and strokes
3248
- Gradients
3349
- Patterns
@@ -41,6 +57,7 @@ Filters are not currently supported and embedded raster images are not color
4157
managed. Instead, they use PDF's `DeviceRGB` color space.
4258

4359
## Contributing
60+
4461
We are looking forward to receiving your bugs and feature requests in the Issues
4562
tab. We would also be very happy to accept PRs for bug fixes, features, or
4663
refactorings!
@@ -56,6 +73,7 @@ Thanks to each and every prospective contributor for the effort you (plan to)
5673
invest in this project and for adopting it!
5774

5875
## License
76+
5977
svg2pdf is licensed under a MIT / Apache 2.0 dual license.
6078

6179
Users and consumers of the library may choose which of those licenses they want

0 commit comments

Comments
 (0)