Skip to content

Low-level (auto-generated) rust bindings for libwkhtmltox

License

Notifications You must be signed in to change notification settings

anowell/wkhtmltox-sys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Low-level (auto-generated) rust bindings for libwkhtmltox

Resources

License

Stars

Watchers

Forks

Packages

No packages published