Saturday, 22 August 2020

How do I automate xlsx to pdf conversion in Node?

​I hope you´re all doing well. As the title mentions, I´ve been looking for a way to automate file conversion from xlsx to pdf in node js. I found the Convert API https://www.convertapi.com/ which seemed to work pretty well after I tried it but requires a monthly payment, which I´d prefer to avoid.Someone suggested using the unoconv command line tool along with the child_process module in node, but frankly I´m at a complete loss. Im not very well versed in the command line and even the instructions to install it confuse me a bit:"Rename the downloaded script to C:unoconvunoconv.pyCreate a batch file C:unoconvunoconv.bat with these contents:@"C:Program FilesLibreOffice 5programpython.exe" c:unoconvunoconv.py %*"Do you have any suggestions as to how I should proceed?This project will provide a huge time-efficiency boost to the business I work for, so I´m super eager to get past this problem.

Submitted August 22, 2020 at 09:06PM by epistemicmind

No comments:

Post a Comment