Print out PDF with javascript [closed]
- by Daniel Abrahamsson
I have a need to print out multiple PDFs with the help of javascript. Is this even possible without rendering each PDF in a separate window and calling window.print()?
Basically, I would like to be able to do something like print('my_pdf_url').
Edit
After some searching, I have come to the conclusion that there are no other methods than the one I've described above. It is a far from perfect solution, but it works in simple cases.
Edit
I ended up merging the PDFs to a monster PDF on the server side and then send this single PDF to the user, who can then choose to print it out.