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/
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, 2022 in Node-js by Vaani
• 7,070 points
2,368 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:)

To know more about Node JS, It's recommended to join Node JS Certification today.

answered Jun 7, 2022 by Neha
• 9,020 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,840 points
23,305 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,840 points
13,795 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,840 points
2,494 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,840 points
3,029 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
1,947 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,470 views
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, 2022 in Node-js by Neha
• 9,020 points
2,995 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, 2022 in Node-js by Neha
• 9,020 points
911 views
0 votes
1 answer

How to host MEAN stack application with Angular and nodejs on windows IIS

It's fine that you're using Angular. Be ...READ MORE

answered May 27, 2022 in Node-js by Neha
• 9,020 points
1,365 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP