Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.47 KB

readme.md

File metadata and controls

44 lines (30 loc) · 1.47 KB

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