Skip to content

jjclark1982/metalsmith-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

var pdf = require('metalsmith-pdf');

metalsmith.use(pdf({
  pattern: "**/*.html",
  printMediaType: true,
  pageSize: "letter"
}));

CLI Usage

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

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

License

MIT

About

pdf generator for metalsmith

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published