Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 640 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 640 Bytes

Sejda JS

Javascript wrapper for Sejda PDF, the engine behind Sejda.com

Usage

Split by pages

var sejda = require('sejda-js')

sejda.splitByPages({
    files:['pdfs/2_pages.pdf'],
    pages: '1',
    output: '/tmp'
  },
  function(err, stdout, stderr){
    console.log(stdout);
    console.error(stderr);

    if(err) console.error('Failed. ', err)
    else console.log('OK')
  }
)

Reference implementations:

License

AGPLv3