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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
PDF generator for metalsmith
Install wkhtmltopdf on your system.
And install this plugin:
$ npm install metalsmith-pdf
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"
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"
}
MIT