metalsmith-pdf

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i metalsmith-pdf

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

4.77 kB

Total Files

4

Last publish

Collaborators

  • jjclark1982