wkhtmltox-sys 0.1.2

FFI bindings to wkhtmltox
Documentation
  • Coverage
  • 4.69%
    3 out of 64 items documented1 out of 6 items with examples
  • Size
  • Source code size: 34.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.54 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Documentation
  • anowell/wkhtmltox-sys
    16 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • anowell

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