GithubHelp home page GithubHelp logo

aws-lambda-poppler's Introduction

AWS Lambda Poppler

Poppler execution helpers for AWS Lambda Node.js environment.

Release

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

aws-lambda-poppler's People

Contributors

dependabot[bot] avatar pavinthan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.