Sha256: a3290dabc0d29d3f857d21ac80ee9e2ef7e6a038e8a235882681e67965b77e9c
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
// extracted from https://github.com/westy92/html-pdf-chrome const fs = require("fs"); const htmlPdf = require('html-pdf-chrome'); const args = process.argv.slice(2); const path = args[0]; const filename = args[1]; const html = fs.readFileSync(path, 'utf8'); var options = {}; if (args[2]) { options = JSON.parse(args[2]); } if (options['completionTrigger'] != undefined) { options['completionTrigger'] = eval(options['completionTrigger']); } htmlPdf.create(html, options).then((pdf) => pdf.toFile(filename));
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dragonfly_chrome_headless-0.2.0 | script/rasterize.js |