By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,036 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,036 IT Pros & Developers. It's quick & easy.

Print,email and save as PDF a page?

mikek12004
100+
P: 200
In some cases I have heard that sites provides buttons with which a user can print, email or save as PDF the current page I assume this is done with javascript anyone knows how?
Mar 18 '09 #1
Share this Question
Share on Google+
4 Replies


acoder
Expert Mod 15k+
P: 16,027
Not with JavaScript, but you could trigger a server-side script with JavaScript.
Mar 18 '09 #2

mikek12004
100+
P: 200
For the print of the page is easy just one command and for the email believe I can make it work but for the saving as PDF I do not have an idea anyone who has dealt with it before?
Mar 19 '09 #3

acoder
Expert Mod 15k+
P: 16,027
It depends on the language you're using. For example, if you're using PHP, there's a few free classes out there, e.g. FPDF, dompdf and others.
Mar 19 '09 #4

mikek12004
100+
P: 200
Indeed I use PHP so I will take a look at these classes thanks :)
Mar 19 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.