3 releases

Uses old Rust 2015

0.1.2 Aug 1, 2016
0.1.1 Aug 1, 2016
0.1.0 Jul 23, 2016

#2858 in Text processing

Download history 139/week @ 2025-03-27 176/week @ 2025-04-03 308/week @ 2025-04-10 120/week @ 2025-04-17 185/week @ 2025-04-24 174/week @ 2025-05-01 251/week @ 2025-05-08 398/week @ 2025-05-15 218/week @ 2025-05-22 198/week @ 2025-05-29 199/week @ 2025-06-05 215/week @ 2025-06-12 362/week @ 2025-06-19 245/week @ 2025-06-26 293/week @ 2025-07-03 462/week @ 2025-07-10

1,377 downloads per month
Used in 3 crates (via wkhtmltopdf)

MIT license

17KB
226 lines

Low-level bindings for wkhtmltopdf and wkhtmltoimage

These bindings currently depend on libwkhtmltox 0.12.3


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

No runtime deps