/gulp-pdf-thumbnail

Gulp plugin that generate PNG thumbnail from PDF files.

Primary LanguageJavaScriptMIT LicenseMIT

gulp-pdf-thumbnail

NPM version Build Status Coverage Status Dependency Status MIT licensed

NPM

What this?

Gulp plugin that generate PNG thumbnail from PDF files.

Getting started

First download and install GraphicsMagick or ImageMagick.

[imagemagick!] (http://www.imagemagick.org) [graphicsmagick!] (http://www.graphicsmagick.org/) [ghostscript!] (http://www.ghostscript.com/)

Install

$ npm install --save-dev gulp-pdf-thumbnail

Usage

var gulp = require('gulp');
var pdfThumbnail = require('gulp-pdf-thumbnail');

gulp.task('default', function () {
	return gulp.src('src/file.pdf')
		.pipe(pdfThumbnail())
		.pipe(gulp.dest('dist'));
});

License

MIT © Samuel Martineau