Generating PDF Invoices from Word Templates with officeParser / / No Comments Last week I shared a demo ("Generating PDFs from Word Templates with officeParser") that made use of the awesome officeParser open source library. That demo was a simple "customer report" web app that took custom data and a Word template. Once the form was submitted, the library converted tokens in the Word template to real data and output a PDF. I decided to build another demo using the library, this time on the server with a simple Node.js script. As I mentioned previously, this new feature mimics Adobe’s Document Generation API. At the time I wrote my blog post, the library just supported simple transformations. So given “ in your Word template, if you passed... more → Posted in: JavaScript Tagged with: from, Generating, Invoices, officeParser, Templates, Word
Generating PDFs from Word Templates with officeParser / / No Comments I’ve been singing the praises of the officeParser library for a while. It’s an open source JavaScript library that can parse, extract, and convert between PDFs and Office documents, as well as OpenOffice, ePub and more. My demos have all focused on client-side examples but obviously the library would work great in a server side workflow as well. I haven’t worked at Adobe for years now, but I still get strangely excited working with documents. I’ll just add that to the long list of reasons I’m a big nerd. A few weeks ago, I reached out to Harsh Ankur about an idea inspired by Adobe’s Document Generation API. This was probably my favorite API in their suite of... more → Posted in: JavaScript Tagged with: from, Generating, officeParser, PDFs, Templates, Word
Dang good Office parsing on the web with officeParser / / No Comments A few weeks ago I wrote about using Chrome’s built-in AI support to summarize documents – "Summarizing Docs with Built-in AI". This was a followup on an earlier post that was PDF only and made use of an excellent library, officeParser, to work with Microsoft Office files. This library worked well, but had one issue that made it a bit harder to use. Parsing a doc itself was super easy: const getAST = async (file, config) => (await OfficeParser.parseOffice(file, config)); But the issue I ran into was taking that result and turning it into something meaningful for Chrome’s model to analyze. PDFs supported a toText() method but for other formats I had to do a bit of... more → Posted in: JavaScript Tagged with: Dang, GOOD, office, officeParser, Parsing