wkhtmltox-sys 0.1.2

FFI bindings to wkhtmltox
Documentation

wkhtmltox-sys

Auto-generated bindings to libwkhtmltox

See wkhtmltopdf-rs for the abstracted higher-level bindings.

You'll need libwkhtmltox installed.

Documentation

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