Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

PageVault/ghostscript-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status bitHound Overall Score js-semistandard-style

ghostscript-js

Just a nodeJS wrapper for ghostscript

Usage

const Ghostscript = require('ghostscript-js')

const gs = new Ghostscript()

gs.batch()
  .nopause()
  .device()
  .resolution(150)
  .input('/path/to/file.pdf')
  .output('/path/to/file.tif')
  .exec()
  .then((sdtout) => {
    // Do something
  })
  .catch((error) => {
    // Do something
  })

API

  • batch
  • nopause
  • quiet
  • interpolate
  • ram - number - defaults to 30 MB
  • device - device - defaults to tiff24nc
  • resolution - number
  • firstPage - number
  • lastPage - number
  • AutoRotatePages - All, None, PageByPage
  • antiAliasColorImage
  • antiAliasGrayImage
  • antiAliasMonoImage
  • autoFilterColorImages
  • colorImageFilter
  • autoFilterGrayImages
  • grayImageFilter
  • downsampleColorImages
  • downsampleGrayImages
  • downsampleMonoImages
  • colorConversionStrategy
  • convertCMYKImagesToRGB
  • convertImagesToIndexed
  • UCRandBGInfo
  • preserveHalftoneInfo
  • preserveOPIComments
  • preserveOverprintSettings
  • output - file
  • input - file
  • exec - Promise (ES6)
  • compatibility - number
  • pdfsettings - string

About

Just a nodeJS wrapper for ghostscript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%