Skip to content Skip to sidebar Skip to footer

Tcpdf Return To Previous Page After Print Dialog Close

I am using TCPDF to generate documents for an online application. I want the user to return to the form after print because the user will capture data again. I have tried opening

Solution 1:

The problem is that if you load a PDF file directly, then that page does not have JS running on it, so you can not close it with JS

The best solution I can suggest is to use ViewerJS, which a PDF reader written in JS, so you can still run code at the same time as displaying the document.

Post a Comment for "Tcpdf Return To Previous Page After Print Dialog Close"