<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Tex-Live mailing list,</div><div class=""><br class=""></div><div class="">I’m not sure if this is the right place to post this.</div><div class=""><br class=""></div><div class=""><div class="">My client has a web application that uses LaTeX to produce .PDF documents on-demand.</div></div><div class=""></div><div class="">We’re using AWS Lambda <a href="https://aws.amazon.com/lambda" class="">https://aws.amazon.com/lambda</a> to host the PDF generation code so that we can scale to an arbitrary number of simultaneous users without having to manage servers.</div><div class=""> </div><div class="">The main problem to overcome is that AWS Lambda is restricted to a 50MB .ZIP deployment archive, so a normal TeX Live installation won’t fit.</div><div class=""><br class=""></div><div class="">To solve this problem I’ve built a Dockerfile that:</div><div class=""> - installs a minimal subset of TeX Live,</div><div class=""> - installs a configurable list of required packages,</div><div class=""> - deletes unneeded large files (e.g. doc pdfs) and</div><div class=""> - creates a .ZIP archive suitable for deployment to AWS Lambda.</div><div class=""><br class=""></div><div class="">The result is an AWS Lambda function that takes a base64 encoded .ZIP file containing .tex files (and images etc) and returns a base64 encoded .PDF file.</div><div class=""><br class=""></div><div class="">The Dockerfile and AWS Lambda deployment scripts are available here: <a href="https://github.com/samoconnor/lambdalatex" class="">https://github.com/samoconnor/lambdalatex</a></div><div class=""><br class=""></div><div class="">I hope it is useful to someone!</div><div class=""><br class=""></div><div class="">Cheers,</div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sam O'Connor<br class=""><br class=""><b class="">OC Technology Pty Ltd<br class=""></b></div></div></div></div></div></div></div></div></body></html>