forked from mbr/poppler-rs
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionify password params and put displaying stuff behind feature (#13)
* what the action doing? * action * Update rust.yml * hopefully works ™️ * github actions runs my code (and not me) * no more C_NULL * hopefully fix again * GitHub runs my code (and not me) P:2 * GitHub actions assisted refactoring (GAAR) * also build crate in release mode in CI * Revert rust.yml * Change expect messages * Change version to `0.4.0` * make rendering stuff behind a `render` feature * Why was that there LOL * fix tests failing when render feature is not enabled * Clean code a little bit --------- Co-authored-by: RealPacket <never>
- Loading branch information
betapacketdlldink.nodllforyou
authored
Jan 11, 2024
1 parent
5461041
commit 84e0d87
Showing
4 changed files
with
77 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
[package] | ||
authors = ["Marc Brinkmann <[email protected]>", | ||
"Denys Vitali <[email protected]>"] | ||
authors = [ | ||
"Marc Brinkmann <[email protected]>", | ||
"Denys Vitali <[email protected]>", | ||
] | ||
name = "poppler" | ||
license = "GPL-2.0" | ||
version = "0.3.2" | ||
version = "0.4.0" | ||
description = "Wrapper for the GPL-licensed Poppler PDF rendering library." | ||
repository = "https://github.com/DMSrs/poppler-rs" | ||
edition = "2018" | ||
|
||
[features] | ||
render = ["dep:cairo-rs"] | ||
|
||
[dependencies] | ||
cairo-rs = { version = "0.15", features = ["png", "pdf"] } | ||
glib = "0.15" | ||
cairo-rs = { version = "0.18.5", features = ["png", "pdf"], optional = true } | ||
glib = "0.18.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
# poppler-rs | ||
|
||
[![poppler](https://img.shields.io/crates/v/poppler.svg)](https://crates.io/crates/poppler) | ||
[![Documentation](https://img.shields.io/static/v1.svg?label=documentation&message=docs.rs&color=blue)](https://docs.rs/poppler/*/poppler/) | ||
|
||
[libpoppler](https://poppler.freedesktop.org/) is a library for rendering PDF files, this are Rust bindings to it. It uses [cairo](https://crates.io/crates/cairo-rs) for rendering, as a result PDF content can be drawn onto a number of surfaces, including SVG, PDF or PNG. | ||
[libpoppler](https://poppler.freedesktop.org/) is a library for rendering PDF files, | ||
this crate is Rust bindings to it. | ||
|
||
It uses [cairo](https://crates.io/crates/cairo-rs) for rendering, | ||
as a result PDF content can be drawn onto a number of surfaces, including SVG, PDF or PNG. | ||
|
||
**Warning**: libpoppler is based on the GPL-licensed [xpdf-3.0](http://www.foolabs.com/xpdf/) and is unlikely to ever be released under a different license. As a result, every program or library linking against this crate *must* be GPL licensed as well. | ||
> [!WARNING] | ||
> libpoppler is based on the GPL-licensed [xpdf-3.0](http://www.foolabs.com/xpdf/) | ||
> and is unlikely to ever be released under a different license. | ||
> As a result, every program or library linking against this crate *must* be GPL licensed as well. | ||
The crate has only been tested on Linux; ensure that `libpoppler-glib` is installed to use it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters