Closed vokmar closed 6 months ago
As always the question if it is working in libreoffice. If it works in Libreoffice and not in this lib, it might be a bug of this lib and you can reopen the issue. If it does not work in Libreoffice, please open a bug report in their issue tracker. Thank you
I'll try printing later
How to beat this![image](https://github.com/elwerene/libreoffice-convert/assets/65220655/bacb4899-ddd7-44ba-ac50-31f678a91933)
const converterDOCX = async (path)=>{ const regex = /\.docx/i; const pathPDF = path.replace(regex, '.pdf'); const docxBuf = await fs.readFile(path); console.log(process.env) console.log(process.env.PROGRAMFILES) await convert(docxBuf,'pdf',undefined,(err,done)=>{ console.log(err) console.log(done) if(done) fs.writeFile(pathPDF, done) }) }