1 unstable release
Uses old Rust 2015
0.0.1 | Nov 27, 2016 |
---|
#47 in #raster
1KB
Lester
Lester, Victor’s cousin, makes raster graphics.
This is a reimplementation of Poppler’s pdftocairo
utility program as a Rust library.
It loads PDF documents with Poppler
and renders (rasterizes) them to in-memory pixel buffers with cairo.
It can then export to PNG.
Lester is primarily intended to help test the visual rendering of PDF files generated by Victor.
Reimplementing pdftocairo
enables skipping the overhead of cross-process communication
and image compression/decompression.
It also enables extracting (and testing) PDF metadata at the same time as rendering.
Requirements
- Poppler, with its
glib
wrapper API. - cairo
- pkg-config, at build time
License
Lester is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Programs using Lester dynamically links against Poppler which is licensed under GNU General Public License version 2 or version 3, at your option ([1], [2]). Binaries of these programs are therefore also subject to the terms of the GPL.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Lester by you, as defined in the Apache-2.0 license, shall be dual licensed under MIT / Apache-2.0 as above, without any additional terms or conditions.