Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an npm module to modify a pdf file in node.js?

I'm building a node.js app on Bluemix that should take a pdf file as request and then grey out (blank) some part of the pdf file. And also here the pdf file is the same for all, and the area we need to blank out will be fixed. So can anybody suggest an npm module that can perform this kind of functionality?

like image 440
H Varma Avatar asked Sep 07 '16 06:09

H Varma


People also ask

What is Javascript NPM module?

NPM is a package manager for Node. js packages, or modules if you like. www.npmjs.com hosts thousands of free packages to download and use. The NPM program is installed on your computer when you install Node.js. NPM is already ready to run on your computer!

How do I save node JS as a PDF?

To save a PDF document to a file on disk, invoke its Save() method: async function main() { doc.


Video Answer


1 Answers

I suggest you to try HummusPDF. Specifically take a look at the Hummus - Modification page, that explains how to edit existing PDF documents. In your case you could try to use the feature that allows to draw shapes.

like image 177
Umberto Manganiello Avatar answered Oct 15 '22 21:10

Umberto Manganiello