Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anowell/wkhtmltox-sys
Low-level (auto-generated) rust bindings for libwkhtmltox
https://github.com/anowell/wkhtmltox-sys
Last synced: about 1 month ago
JSON representation
Low-level (auto-generated) rust bindings for libwkhtmltox
- Host: GitHub
- URL: https://github.com/anowell/wkhtmltox-sys
- Owner: anowell
- License: mit
- Created: 2016-06-22T06:44:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-04T04:32:07.000Z (over 3 years ago)
- Last Synced: 2024-11-09T22:31:30.186Z (about 1 month ago)
- Language: Rust
- Size: 576 KB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wkhtmltox-sys
Auto-generated bindings to libwkhtmltox. Depends on libwkhtmltox being installed.
Resource | Link
----- | -----
Crate | [![Crates.io](https://img.shields.io/crates/v/wkhtmltox-sys.svg?maxAge=2592000)](https://crates.io/crates/wkhtmltox-sys)
Documentation | [Cargo docs](https://anowell.github.io/wkhtmltox-sys/wkhtmltox_sys/)
High-level bindings | [wkhtmltopdf-rs](https://github.com/anowell/wkhtmltopdf-rs)
Upstream | [wkhtmltopdf.org](http://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
```