Skip to content

diverta/node-ghostscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ghostscript

Wrapper for ghostscript in node.js.

Install

npm install https://github.com/musubu/node-ghostscript/tarball/master

Usage

var gs = require('ghostscript');

gs()
  .batch()
  .quiet()
  .nopause()
  .device('jpeg')
  .input('./test.pdf')
  .output('./test-%d.jpg')
  .r(144)
  .jpegq(90)
  .exec(function(err, stdout, stderr) {
    if (!err) {
      console.log(stdout);
    } else {
      console.log(err);
    }
  });

API

  • batch
  • device
  • exec
  • input
  • jpegq
  • nopause
  • output
  • r
  • quiet

Test

To run test, do:

make test

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.9%
  • Makefile 2.1%