particle-iot/metalsmith-pdf

Name: metalsmith-pdf

Owner: Particle

Description: pdf generator for metalsmith

Forked from: jjclark1982/metalsmith-pdf

Created: 2017-01-30 05:19:53.0

Updated: 2017-01-30 05:19:54.0

Pushed: 2018-01-03 18:33:22.0

Homepage: null

Size: 6

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

metalsmith-pdf

PDF generator for metalsmith

Installation

Install wkhtmltopdf on your system.

And install this plugin:

$ npm install metalsmith-pdf
Usage

All options other than pattern are passed directly to the wkhtmltopdf options parser

pdf = require('metalsmith-pdf');

lsmith.use(pdf({
ttern: "**/*.html",
intMediaType: true,
geSize: "letter"

CLI Usage

All of the same options apply, just add them to the "plugins" key in your metalsmith.json configuration:


lugins": {
"metalsmith-pdf": {
  "pattern": "**/*.html",
  "printMediaType": true,
  "pageSize": "letter"
}


License

MIT


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.