Nodejs Convert Doc to PDF

0 votes

I discovered a few repositories that don't appear to be active anymore:

https://github.com/gfloyd/node-unoconv
https://github.com/skmp/node-msoffice-pdf/node-msoffice-pdf/node-msoffice-pdf/node-msoffice-pdf/
I tried using libreoffice for this, but the pdf output is so terrible that it's useless (text on diff. pages etc.).

I'd like to avoid initiating any background processes and/or saving the file to the server if at all possible. The best solution would be one that allows me to employ buffers. I am unable to use any external service due to concerns about privacy.

doc buffer -> pdf buffer

How to convert docs to pdf in nodejs?

May 31 in Node-js by Vaani
• 7,020 points
26 views

1 answer to this question.

0 votes
For anybody who may come across this question today:

Gotenberg is a useful utility that uses Docker to provide a stateless API for converting HTML, Markdown, and Office documents to PDF. It supports unoconv for DOC conversion.

I'm also the inventor of gotenberg-js-client, a JS/TS client for Gotenberg.

You are welcome to use it:)

Gotenberg currently has a new website: https://gotenberg.dev.
answered Jun 7 by Neha
• 8,560 points

Related Questions In Node-js

0 votes
1 answer

How to extract request http headers from a request using NodeJS connect?

Hello @kartik, To see a list of HTTP ...READ MORE

answered Jul 15, 2020 in Node-js by Niroj
• 82,700 points
13,598 views
0 votes
1 answer

How to get the _id of inserted document in Mongo database in NodeJS?

Hello @kartik, A shorter way than using second ...READ MORE

answered Sep 7, 2020 in Node-js by Niroj
• 82,700 points
8,030 views
0 votes
1 answer

How to create an Excel File with Nodejs?

Hello @kartik, Just create a file with Tabs ...READ MORE

answered Sep 7, 2020 in Node-js by Niroj
• 82,700 points
1,060 views
0 votes
1 answer

How to run app.js in nodejs?

Hello @kartik, Assuming I have node and npm properly installed on the ...READ MORE

answered Oct 13, 2020 in Node-js by Niroj
• 82,700 points
1,168 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
968 views
0 votes
1 answer
0 votes
1 answer

Fill Data In Existing PDF Form Using NodeJS

Check out the following modules on npm: fill-pdf pdffiller pdf-fill-form node-pdffiller pdfkit The node-pdffilleris ...READ MORE

answered Jun 10 in Node-js by Neha
• 8,560 points
24 views
0 votes
1 answer

NodeJS - Upload ~36MB file to VirusTotal failing

The VirusTotal file/scan API request has a ...READ MORE

answered May 27 in Node-js by Neha
• 8,560 points
24 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP