That Lambda is designed to be invoked from an AWS Step Function, or in response to an S3 "created" event, but could easily be modified to support other triggers. Sample code for converting to PDF can be found on GitHub. Deployment on AWS lambda - Serverlessĭocx-wasm is ideally suited to serverless workloads. init ( ) Deployment Client-sideĭocx-wasm can be deployed client-side (including on Android), reducing server workloads and opening the way to offline operation. Docx to PDF sample codeĬonst fs = require ( 'fs' ) const docx = require ( ) // init docx engine docx. We have a generous free tier, you can get your keys at Ĭopy these into the docx.init call in the sample below (or alternatively, you can set these as environment vars). You'll need a ND_DEV_ID, ND_DEV_SECRET pair to use this module. All available alternatives rely on heavy platform specific code or remote conversion (or both). (Coming soon: doc/docx to text conversion, suitable for NLP/AI applications)Ĭonversion is performed locally where you are running Node, so your sensitive documents remain safely under your control. docx to PDF conversion (and also binary.PDF output is achieved using the Word compatible page layout we developed for our web-based document editing/viewing components (more information: ). doc to docx)ĭocx-wasm is a World first, production ready commercial grade solution for handling Microsoft Word documents in pure javascript + wasm, proudly brought to you by Native Documents. High quality docx to PDF conversion, at last! (and also, binary.
0 Comments
Leave a Reply. |