Gulp plugin that generate PNG thumbnail from PDF files.
First download and install GraphicsMagick or ImageMagick.
[imagemagick!] (http://www.imagemagick.org) [graphicsmagick!] (http://www.graphicsmagick.org/) [ghostscript!] (http://www.ghostscript.com/)
$ npm install --save-dev gulp-pdf-thumbnail
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'));
});
MIT © Samuel Martineau