wkhtmltox 0.1.1

Thin wrapper for wkhtmltox


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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();
}

Authors:Márcio Martins

Dependencies: none

Versions:
0.1.1 2016-Dec-05
0.1.0 2016-Nov-25
~master 2016-Dec-05
Show all 3 versions
Stats:

statistics are temporarily disabled.