wkhtmltox-sys

Crates.iowkhtmltox-sys
lib.rswkhtmltox-sys
version0.1.2
sourcesrc
created_at2016-07-23 04:09:47.826781
updated_at2016-08-01 08:27:24.871585
descriptionFFI bindings to wkhtmltox
homepage
repositoryhttps://github.com/anowell/wkhtmltox-sys
max_upload_size
id5758
size33,960
Anthony Nowell (anowell)

documentation

https://anowell.github.io/wkhtmltox-sys/wkhtmltox_sys/

README

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
Commit count: 18

cargo fmt