abhishekkian Posted October 8, 2013 Share Posted October 8, 2013 I am wondering if it is possible to print a pdf file when someone clicks some link. The pdf is already present in some directory on the server. Please tell me the code/command. Thanks in advance. I am new to PHP and don't know many commands that are predefined. Quote Link to comment https://forums.phpfreaks.com/topic/282807-code-to-print-a-pdf-file-instead-of-downloading-it/ Share on other sites More sharing options...
winningdave Posted October 8, 2013 Share Posted October 8, 2013 http://forums.phpfreaks.com/topic/107727-solved-display-pdf-file-inline-how/ Quote Link to comment https://forums.phpfreaks.com/topic/282807-code-to-print-a-pdf-file-instead-of-downloading-it/#findComment-1453075 Share on other sites More sharing options...
cyberRobot Posted October 8, 2013 Share Posted October 8, 2013 If you're looking to print a PDF (vs opening it), have you looked into JavaScript? You may find something that works here: https://www.google.com/search?q=javascript+print+pdf Quote Link to comment https://forums.phpfreaks.com/topic/282807-code-to-print-a-pdf-file-instead-of-downloading-it/#findComment-1453082 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.