metalsmith-phantomjs-pdf
Converts HTML files from local filesystem to PDF with phantomjs.
To use this package you do not need to install phantomjs, phantomjs-prebuilt is installed for you.
Usage
var Metalsmith = var changed = var pdf = var fs = ;var path = ; var ctimes = 'metalsmith-changed-ctimes-html.json'; // do the building source'build' // output-folder for another build, for example md -> html // do not delete any files ; /** * Delete old PDF files (not depending on phantomjs overwriting) */ { Object; ;} /** * Remove HTML-files from build, such that they are not overwritten, * as we are only reading them to get file URLs */ { Object; ;}