peddel Posted August 22, 2008 Share Posted August 22, 2008 Hi there, i got a pdf standing on my server. Thing now is i wanna make a link inside my html page, which when clicked, forces the document to open and print. Anyone got clue how to do this, havent really found a way trough google. Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/ Share on other sites More sharing options...
haku Posted August 22, 2008 Share Posted August 22, 2008 I would be very surprised if it was possible to force the document to print. The best you can do is force a download. Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/#findComment-622818 Share on other sites More sharing options...
peddel Posted August 22, 2008 Author Share Posted August 22, 2008 I would be very surprised if it was possible to force the document to print. The best you can do is force a download. LoL? hmmm maybe tell then how to open when link is clicked? Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/#findComment-622821 Share on other sites More sharing options...
peddel Posted August 22, 2008 Author Share Posted August 22, 2008 i used this, thing is it works in IE but not in mozilla firefox Any idea why ? <?php $pad = "file://srvdc01/Company/IVOO%20Intranet/ISO/ISO%20pagina/PDF_bestanden/PROCEDUR/P_KW_9/F_KW_9_1.pdf"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <link href="layout.css" rel="stylesheet" type="text/css" /> <title>Formulier Productieregister 1</title> </head> <body> <a href="<?php echo $pad ?>">Klik op deze link.</a> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/#findComment-622841 Share on other sites More sharing options...
JLitkie Posted August 22, 2008 Share Posted August 22, 2008 im kinda new to the whole thing here, but couldn't you use the php to pull it from the server and then mix in a java script or DHTML to offer the option to print, or maybe for a print?? Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/#findComment-622846 Share on other sites More sharing options...
peddel Posted August 22, 2008 Author Share Posted August 22, 2008 im kinda new to the whole thing here, but couldn't you use the php to pull it from the server and then mix in a java script or DHTML to offer the option to print, or maybe for a print?? tried it already :'( but it failed :'( seems somewhere there is a problem in the setup of this companys pc's that doesnt allow me to use some methods for displaying PDF's Quote Link to comment https://forums.phpfreaks.com/topic/120827-printing-a-pdf-file-on-my-server/#findComment-622884 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.