Skip to content

musubu/node-ghostscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

About

Wrapper for ghostscript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published