@jeylabs/aws-lambda-poppler
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

AWS Lambda Poppler

Poppler execution helpers for AWS Lambda Node.js environment.

Install

NPM

$ npm install @jeylabs/aws-lambda-poppler --save

Yarn

$ yarn add @jeylabs/aws-lambda-poppler

Available methods

These are the methods currently supported.

How to use

const {usePixmap} = require('@jeylabs/aws-lambda-poppler');

module.exports.handler = () => {
  // assuming there is a document.pdf file inside /tmp dir
  return usePixmap('document.pdf'); // returns [document/page-1.png, document/page-2.png]
};

How to configure

You can pass configrations as secound parameter to all methods, Please check the source to check supported options.

  • Default working diractory is /tmp, you can modify it by passing your value with root key.
  • If you want to supply more arguments you can pass your argument list with options key.
usePixmap('document.pdf', {
  root: '/tmp',
  prefix: 'modified-page',
  options: ['-png', '-freetype no']
}); // returns [document/modified-page-1.png, document/modified-page-2.png]

See Also

Thanks

License

MIT © jeylabs

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @jeylabs/aws-lambda-poppler

    Weekly Downloads

    36

    Version

    2.0.4

    License

    MIT

    Unpacked Size

    18.8 kB

    Total Files

    22

    Last publish

    Collaborators

    • jeylabs-npm
    • kogul.ceymplon
    • pavinthan