Oh! So why not use Javascript instead of Python?īecause I felt like using Python and wanted a challenge? Forget about what I said earlier about avoiding writing code. In fact, there already exists a JS-based library that does exactly that! It turns out a popular strategy for converting word documents to pdf is to use the CLI capabilities of LibreOffice. The ask from the business was that the document format was preserved completely, so I couldn't risk an incomplete solution. I considered using Google Docs as the conversion workhorse, but I was informed by a coworker who had been on the project longer that Google Docs always dropped certain formatting elements, typically symbols like open paren. So I think we can all agree writing code to solve problems should be a last resort, so first I wondered if I could leverage a (hopefully free) service to do the heavy lifting. Clearly, I was about to have my hands full. That was until I forced VS Code to open the file raw: While I knew those files are packed with metadata for use during document editing, I figured I could just scrape the document until I found ascii characters. Among the formats expected to be supported were. The goal of my first task was to trigger a Lambda when documents are uploaded to an S3 bucket, and convert files of varying formats to. I was recently put on a new assignment that makes heavy use of AWS for, among other things, serverless architecture.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |