Auto-generated bindings to libwkhtmltox. Depends on libwkhtmltox being installed.
Resource | Link |
---|---|
Crate | |
Documentation | Cargo docs |
High-level bindings | wkhtmltopdf-rs |
Upstream | wkhtmltopdf.org |
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
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-to-pdf.c -o target/convert-string-to-pdf-c -lwkhtmltox
target/convert-string-to-pdf-c