3 releases
Uses old Rust 2015
0.1.2 | Aug 1, 2016 |
---|---|
0.1.1 | Aug 1, 2016 |
0.1.0 | Jul 23, 2016 |
#1924 in Text processing
1,299 downloads per month
Used in 2 crates
(via wkhtmltopdf)
17KB
226 lines
wkhtmltox-sys
Auto-generated bindings to libwkhtmltox
See wkhtmltopdf-rs for the abstracted higher-level bindings.
You'll need libwkhtmltox installed.
Generating
This is generated with bindgen:
$ bindgen --link=dynamic=wkhtmltox include/pdf.h > src/pdf.rs
$ bindgen --link=dynamic=wkhtmltox include/image.h > src/image.rs
$ cargo fmt
Examples
The Rust example is built with cargo:
cargo test
target/debug/examples/convert-string
The C example can be built with gcc:
gcc -g -Wall examples/convert-string.c -o target/convert-string-c -lwkhtmltox
target/convert-string-c
lib.rs
:
Low-level bindings for wkhtmltopdf and wkhtmltoimage
These bindings currently depend on libwkhtmltox 0.12.3