Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 962 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 962 Bytes

wkhtmltox-sys

Auto-generated bindings to libwkhtmltox. Depends on libwkhtmltox being installed.

Resource Link
Crate Crates.io
Documentation Cargo docs
High-level bindings wkhtmltopdf-rs
Upstream wkhtmltopdf.org

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-to-pdf.c -o target/convert-string-to-pdf-c -lwkhtmltox
target/convert-string-to-pdf-c