jsPDF
jsPDF copied to clipboard
Merge and/or edit pages with/of existing PDF
Is this possible to merge generated pdf pages with existing pdf file pages? It is useful for many purposes such as waterark. This feature is implimented in many pdf libraries such as pyPDF (mergePage).
That would be nice. :)
+1
I am in need of this feature as well.
would definitely help around the limitation of available fonts!
+1
+1
+1
+1
+1
this would be a killer feature! +1
+++1111
+9000 "What?! 9000!?!?!"
+1
+1
My use case is ... I can create a PDF with jsPDF, but then I want to import an "existing PDF that has complex rendering on it" and then use jsPDF to add annotations and other visual elements to that "existing PDF" and then continue on adding more pages.
jsPDF is able to import existing images into the in-creation PDF but it currently does not appear to add existing PDFs into in-creation PDF. I would like to request this feature...
Dec, 2017 update P.S. I have been using TCPDF + FPDI
Seems like duplicate of issue #777
@stoianchoo you can compare years (or numbers) of issues and got to know which issue is duplicate :smile:
I need this feature as well, I don't mind taking a crack at this, but @MrRio can you indicate if this is fairly easy to do (I don't have much knowledge of the PDF specs).
I wish you luck! I am currently using PHP 3rd party libraries called TCPDF + FPDI to accomplish this, and gave up on the JS way.
I can take an existing (incredibly complex engineering drawing) PDF file page as a template, add text/images to that template, and display the resulting page as PDF, and add more pages to it as needed, by using those libraries. This is what is demanded by my application. Looking around there were no JS way to do this. So if you make it happen.. Hoorah!
It is also funny that I generate graphs for that PDF using JS graph library on client-side first, but to be able to include them into PDF with help of the back-end PHP libraries, I encode them as BASE64 client-side, send them via POST to the server, on back-end I save them as image, then plug them into the PDF using the libraries. It is fun.
That's exactly what I do too, I generate a PDF in Base64 and post it to the server, the server will then append a few other PDF's and return the Base64 back to me, which I then just call a saveAs on.
Problem is that our app is fully offline and sometimes I can't make the round trip to the server.
+1 I need to draw bounding boxes in an existing pdf. Could not find a javascript-way yet..
+1
+1
my use case is to add a stamp to PDFs. For example: Paid stamp on PDF invoice.
There is no real data-layer so this would be something for version 3.0 or so.
+1
+1
+1
+1
+1
+1