mrmos Posted May 19, 2010 Share Posted May 19, 2010 Does anyone know is it possible to silent print in PHP? And if so how would I go about doing it? Have looked around a bit and can't seem to find that shows a working way of achieving this... Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/ Share on other sites More sharing options...
kenrbnsn Posted May 19, 2010 Share Posted May 19, 2010 What do you mean by "silent print"? Ken Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1060868 Share on other sites More sharing options...
mrmos Posted May 19, 2010 Author Share Posted May 19, 2010 as in while loading a page or script, a pdf is sent to a printer without the usual pop up and confirm etc Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1060871 Share on other sites More sharing options...
mrmos Posted May 25, 2010 Author Share Posted May 25, 2010 Anybody any ideas on if this is possible? :-\ Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062911 Share on other sites More sharing options...
Daniel0 Posted May 25, 2010 Share Posted May 25, 2010 On the server or on the client? You can't do this on the client. The reasons why you can't should be fairly obvious. Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062912 Share on other sites More sharing options...
mrmos Posted May 25, 2010 Author Share Posted May 25, 2010 On the client. The reasons why you can't should be fairly obvious. I'm not an expert in PHP, and by me asking if this is possible clearly shows I do not know these fairly obvious reasons, hence my asking. No need to be cheeky about it! Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062928 Share on other sites More sharing options...
Mchl Posted May 25, 2010 Share Posted May 25, 2010 The reason is: if this was possible, some teenage moron would set up a page that would 'silently' print 'Moby Dick' one letter per page. Then they would post it on facebook with 'See Miley Cyrus Nekkid Lap Dance Video' description. Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062929 Share on other sites More sharing options...
mrmos Posted May 25, 2010 Author Share Posted May 25, 2010 Thanks Mchl, that is a fair point. Is that 100% locked down as in no possible way around it? Maybe by setting up a direct path to the printer/print files on the pc that can be locked with a password secured connection? I'm just thinking out loud here Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062933 Share on other sites More sharing options...
Mchl Posted May 25, 2010 Share Posted May 25, 2010 None that I know of. As far as I can tell JavaScript, Java applets, Flash applications, all run in a browser sandbox, and do not have a direct access to computer resources. Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062951 Share on other sites More sharing options...
DWilliams Posted May 25, 2010 Share Posted May 25, 2010 Out of curiosity, why do you want to do this? I can't imagine any non-malicious use Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1062968 Share on other sites More sharing options...
Mchl Posted May 25, 2010 Share Posted May 25, 2010 I can. You can have a web app that has it's own 'Print' button, so any extra windows/clicks seem redundant. I am working on such an intranet application, and people are complaining, that they need to click 'Print', Adobe Reader opens, then they need to click 'Print' again. Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1063035 Share on other sites More sharing options...
litebearer Posted May 25, 2010 Share Posted May 25, 2010 Might take a look at this (scroll down to June 18 2008) it might provide some insight... http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6 Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1063067 Share on other sites More sharing options...
mrmos Posted May 31, 2010 Author Share Posted May 31, 2010 I need this to auto print a PDF. The system generates this PDF based on data that the user inputs, they then click print but as it currently stands the PDF opens in a new tab in FF and they then have to ctrl + P, then ok to print which is just very long winded. Pretty much the same as Mchl. Thanks litebearer, I'll test that when I get home from work Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1065666 Share on other sites More sharing options...
shino Posted May 31, 2010 Share Posted May 31, 2010 The closest I was able to get was to ask them to print and they click yes and it prints, but that was via adobe livecycle pdf. I know there are scripts and codes but it requires other things, which I wasn't sure to understand. Here this is where I saw the discussion: http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=12622 Link to comment https://forums.phpfreaks.com/topic/202318-silent-print-a-pdf/#findComment-1065677 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.