0.1.4 • Published 6 years ago
aws-lambda-libreoffice v0.1.4
aws-lambda-libreoffice
85 MB LibreOffice to fit inside AWS Lambda compressed with Brotli
Inspired by chrome-aws-lambda
Install
$ yarn add aws-lambda-libreoffice
Usage
const {getExecutablePath, defaultArgs} = require('aws-lambda-libreoffice');
const loBinary = await getExecutablePath(); // /tmp/instdir/program/soffice
execSync(`${loBinary} ${defaultArgs.join(' ')} --convert-to pdf file.docx --outdir /tmp`)
License
MIT © Vlad Holubiev