Is there an npm module for modifying a pdf file in node.js?

I am creating a node.js application on Bluemix that should take a PDF file as a request, and then the gray (empty) part of the PDF file. And also here the PDF file is the same for everyone, and the area that we need to clear will be fixed. So can anyone suggest an npm module that can perform such functions?

+4
source share
2 answers

Try using this: http://pdfmake.org . This is an improved version of https://github.com/devongovett/pdfkit

You can set the font color to “white” to fade what text you need. Below is an example of code that you can try here: http://pdfmake.org/playground.html

subheader: {
            fontSize: 15,
            bold: true,
            color: "white"
        },
0
source

I suggest you try HummusPDF . In particular, see the Hummus - Modification page for how to edit existing PDFs. In your case, you can try to use a function that allows you to draw shapes .

0
source

Source: https://habr.com/ru/post/1653875/


All Articles