stevesimo Posted April 11, 2007 Share Posted April 11, 2007 Hi, I have a script which generates a certificate on screen using 2 images and placing the certificate holders name and date awarded in the middle. What I want to know is is there a way to print the certificate without the browser details appearing on the printout? ie the page link at the bottom and page number etc? More specifically is there a way to tell the printer to print an image and some text but to ignore everything else? Many thanks Steve (Blackpool) Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/ Share on other sites More sharing options...
kenrbnsn Posted April 11, 2007 Share Posted April 11, 2007 Not with PHP. PHP runs on the server and has no clue about any printers the user may be able to use. You might be able to control this with Javascript. Ken Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-226860 Share on other sites More sharing options...
boo_lolly Posted April 11, 2007 Share Posted April 11, 2007 GOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLE GOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLE GOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLE GOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLEGOOGLE http://www.tizag.com/javascriptT/javascriptprint.php http://www.javascript-page.com/printpage.html Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-226865 Share on other sites More sharing options...
rpadilla Posted April 11, 2007 Share Posted April 11, 2007 best way is use an html to pdf scripts, it's actually free... yeah just google it, Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-226887 Share on other sites More sharing options...
per1os Posted April 11, 2007 Share Posted April 11, 2007 www.php.net/printer Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-226900 Share on other sites More sharing options...
kenrbnsn Posted April 11, 2007 Share Posted April 11, 2007 The printer functions only work if the server is running under Windows. Ken Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-226922 Share on other sites More sharing options...
Barand Posted April 11, 2007 Share Posted April 11, 2007 Or go straight to PDF http://www.fpdf.org Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-227035 Share on other sites More sharing options...
yzerman Posted April 11, 2007 Share Posted April 11, 2007 The problem is not in the script The problem is in the users printer settings. Open IE Goto File>Page Setup... In the Headers and Footers dialog box, delete all Print. Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-227040 Share on other sites More sharing options...
neel_basu Posted April 11, 2007 Share Posted April 11, 2007 www.php.net/printerIt Prints from the Servers printer not from the users printer. and also its not print from the users printer using php. Use Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-227042 Share on other sites More sharing options...
stevesimo Posted April 18, 2007 Author Share Posted April 18, 2007 I downloaded the free pdf script www.fpdf.org It took a little bit of messing with to get it to work. Comes with complete documentation together with working examples. Cheers guys Quote Link to comment https://forums.phpfreaks.com/topic/46603-solved-print-certificate-using-php/#findComment-232220 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.