Skip to content

Commit

Permalink
Release 0.3.2 and fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fschutt committed Feb 28, 2020
1 parent 008263c commit b3f09ce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "printpdf"
version = "0.3.1"
version = "0.3.2"
authors = ["Felix Schütt <[email protected]>"]
repository = "https://github.com/fschutt/printpdf"
homepage = "https://github.com/fschutt/printpdf"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

```toml,ignore
[dependencies]
printpdf = "0.2.8"
printpdf = "0.3.2"
```

## Features
Expand Down Expand Up @@ -139,7 +139,7 @@ fn main() {
// currently, the only reliable file format is bmp (jpeg works, but not in release mode)
// 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();
let image = Image::try_from(image::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 Expand Up @@ -223,10 +223,10 @@ See the CHANGELOG.md file.

## Further reading

The `PDFDocument` is hidden behind a `PDFDocumentReference`, which locks
The `PdfDocument` is hidden behind a `PdfDocumentReference`, which locks
the things you can do behind a facade. Pretty much all functions operate
on a `PDFLayerReference`, so that would be where to look for existing
functions or where to implement new functions. The `PDFDocumentReference`
on a `PdfLayerReference`, so that would be where to look for existing
functions or where to implement new functions. The `PdfDocumentReference`
is a reference-counted document. It uses the pages and layers for inner
mutablility, because
I ran into borrowing issues with the document. __IMPORTANT:__ All functions
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//!
//! ```toml,ignore
//! [dependencies]
//! printpdf = "0.2.8"
//! printpdf = "0.3.2"
//! ```
//!
//! # Features
Expand Down Expand Up @@ -134,7 +134,7 @@
//! // currently, the only reliable file format is bmp (jpeg works, but not in release mode)
//! // 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::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
Binary file added test_working.pdf
Binary file not shown.

0 comments on commit b3f09ce

Please sign in to comment.