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

H Varma picture H Varma · Sep 7, 2016 · Viewed 8k times · Source

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?

Answer

Umberto Manganiello picture Umberto Manganiello · Sep 7, 2016

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.