Background:
I'm creating aspx
pages that I'm able to save as PDF's using the following JavaScript
function: window.print();
This brings up the printer option and I can choose to Save As PDF
.
Next Step:
I would like to save the PDF's that I generate on the the database.
Problem:
I don't know how to save my page as a PDF so that it can be accessed on my code behind.
Question:
Is there anyone way I can solve my problem using JavaScript/JQuery to send it to the back-end or do straight up do it on the back-end?
Note:
If you refer me to a 3rd party library to do it on the back-end, please explain with an example showing how I could convert the entire page (which links to CSS files) to a pdf just like I would be able to see in the above mentioned Background. Everything I've tried so far leaves me with PDF incorrectly laid out.
Thank you!