wkhtmltox 0.1.1
Thin wrapper for wkhtmltox
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
wkhtmltox
Thin wrapper around wkhtmltopdf and wkhtmltoimage for the D language
Notes
-Currently only works on Posix systems
-Requires libwkhtmltox.so
to be reachable by the system loader
-Supported settings and their meaning available at http://wkhtmltopdf.org/libwkhtmltox/pagesettings.html
HTML -> PDF example
static import pdf = wkhtmltox.pdf;
void main() {
pdf.init();
auto cvt = pdf.createConverter([ "out": "google.pdf" ]);
cvt.add("https://www.google.com");
cvt.convert();
}
HTML -> Image example
static import img = wkhtmltox.image;
void main() {
img.init();
auto cvt = img.createConverter("https://www.google.com", [ "out": "google.png" ]);
cvt.convert();
}
- Registered by Márcio Martins
- 0.1.1 released 8 years ago
- eBookingServices/wkhtmltox
- MIT
- Copyright © 2016, Márcio Martins
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.1 2016-Dec-05 0.1.0 2016-Nov-25 ~master 2016-Dec-05 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
115 downloads total
-
- Score:
- 1.3
- Short URL:
- wkhtmltox.dub.pm