Edit existing pdf in node

3,167 views
Skip to first unread message

santa

unread,
Nov 9, 2013, 7:05:13 AM11/9/13
to nod...@googlegroups.com
Hello All,

Is there a library to edit an existing pdf in node?

Thanks,
Santosh

Morgan Herlocker

unread,
Nov 9, 2013, 4:58:18 PM11/9/13
to nod...@googlegroups.com
I do not know of any existing solutions, but I would do something like this:

1) convert pdf to html using https://github.com/coolwanglu/pdf2htmlEX

2) manipulate the html however you need to. You could probably use cheerio for easier dom manipulation. https://github.com/MatthewMueller/cheerio

3) convert the html back to a pdf using something like jspdf. http://parall.ax/products/jspdf

Mark Hahn

unread,
Nov 9, 2013, 10:07:47 PM11/9/13
to nodejs
convert the html back to a pdf using something like jspdf.

I don't know if anyone on this list has had better luck, but I spent almost a week trying every html to pdf solution I could find and every one had some fatal flaw.  Just saying.



--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
 
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alex

unread,
Nov 9, 2013, 11:12:30 PM11/9/13
to nod...@googlegroups.com
I've worked with PDF.js from Mozilla and it is pretty versatile. Not sure if it lets you edit the PDF, however.

Jose Paulo

unread,
Jul 21, 2016, 6:12:50 PM7/21/16
to nodejs
This is exactly what I was searching
Tks

Mahesh Yatageri

unread,
Jul 5, 2017, 2:41:59 PM7/5/17
to nodejs

i wanted to add text on existing pdf file ..

Please share me the code (java script), Very helpful

Reply all
Reply to author
Forward
0 new messages