H Varma
H Varma

Reputation: 640

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?

Upvotes: 21

Views: 25062

Answers (3)

Diego
Diego

Reputation: 558

Yes I guess the most common used library is pdf-lib. Take a look at the official page.

Upvotes: 9

Tilal Ahmad
Tilal Ahmad

Reputation: 939

Please try Aspose.PDF Cloud SDK for Node.js available at GitHub and npm. It provides API methods for a wide range of document processing operations; including creation, manipulation, conversion and rendering of Pdf documents in the cloud. You can use Redaction Annotation to grey out the required PDF area.

P.S: I work with Aspose as Support Developer

Upvotes: -8

Umberto Manganiello
Umberto Manganiello

Reputation: 3233

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.

Upvotes: 1

Related Questions