Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 660 Bytes

README.md

File metadata and controls

47 lines (35 loc) · 660 Bytes

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