Skip to content

d-barletta/lambda-doc-to-pdf

Repository files navigation


Setup

Install

  • npm install

Deploy

  • npm run build-lambda
  • Upload created .zip file to Amazon Lambda Function
  • Please allocate at least 1536 MB of RAM for your Lambda function
  • Set at least 30 sec execution time for your Lambda function
  • Check lambda layer should be something like: arn:aws:lambda:eu-west-2:764866452798:layer:libreoffice-brotli:1
  • Upload new lambda layer to fix some strange bug - reported solution here shelfio/libreoffice-lambda-layer#33 (comment)
  • Created layer in folder lambda-layer
  • It works only in Amazon Linux 2, so it won't work locally on Linux or macOS. However, you could run it in Docker using lambci/lambda:nodejs12.x image
  • If some file fails to be converted to PDF, try converting it to PDF on your computer first. This might be an issue with LibreOffice itself

Info

About

Aws lambda function to convert s3 files to base64 pdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published