Skip to content

odolha/gulp-html2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Gulp plugin for create PDF files from HTML

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%