Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Dec 18, 2021
1 parent f6470b4 commit 273be7e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## `0.5.0`

- added `Svg` class to directly add SVG files to the PDF and instantiate them on the page
- remove `embedded_images` feature from default features
- change default PDF conformance to not embed an entire ICC color profile in the PDF (save on file size)

## `0.4.1`

- added `PdfDocument::save_to_bytes()` to save the PDF document directly to a `Vec<u8>` (see #101)
Expand Down
7 changes: 4 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ autoexamples = false

[dependencies]
# minimum dependencies
lopdf = { git = "https://github.com/J-F-Liu/lopdf", rev = "55b844f411bac334002779dabce0a5f4e539b96a", default-features = false, features = ["pom_parser"] }
lopdf = { version = "0.27.0", default-features = false, features = ["pom_parser"] }
owned_ttf_parser = { version = "0.12", default-features = false }
time = { version = "0.2.11", default-features = false, features = ["std"] }
# optional: logging
Expand All @@ -27,7 +27,7 @@ pdf-writer = { version = "0.4.1", optional = true }
usvg = { version = "0.19.0", optional = true }

[features]
default = ["embedded_images"]
default = []
# cargo clippy
clippy = []
# do not compress PDF streams, useful for debugging
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

```toml,ignore
[dependencies]
printpdf = "0.4.1"
printpdf = "0.5.0"
```

## Features
Expand Down Expand Up @@ -139,7 +139,7 @@ fn main() {
// currently, the only reliable file formats are bmp/jpeg/png
// this is an issue of the image library, not a fault of printpdf
let mut image_file = File::open("assets/img/BMP_test.bmp").unwrap();
let image = Image::try_from(image::bmp::BmpDecoder::new(&mut image_file).unwrap()).unwrap();
let image = Image::try_from(image_crate::bmp::BmpDecoder::new(&mut image_file).unwrap()).unwrap();

// translate x, translate y, rotate, scale x, scale y
// by default, an image is optimized to 300 DPI (if scale is None)
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//!
//! ```toml,ignore
//! [dependencies]
//! printpdf = "0.4.1"
//! printpdf = "0.5.0"
//! ```
//!
//! # Features
Expand Down

0 comments on commit 273be7e

Please sign in to comment.