Skip to content

Navigation Menu

Sign in
Sign up
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Latest commit

History

46 Commits

Folders and files

NameName
Last commit message
Last commit date

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

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /