Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 652 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 652 Bytes

gulp-html2pdf

Requirements

wkhtmltopdf v0.10 or later.

Install

$ npm install gulp-html2pdf --save-dev

Usage

var html2pdf = require('gulp-html2pdf');

gulp.task('pdf', function () {
    return gulp
        .src('./in/index.html')
        .pipe(html2pdf())
        .pipe(gulp.dest('./out/'));
});

API

There are many options available to wkhtmltopdf. All of the command line options are supported as documented on the page linked to above. The options are camelCased instead-of-dashed as in the command line tool.

License

MIT