Jump to content

Printing documents from PHP


ali_kiyani

Recommended Posts

Hi,

 

I have a web page that displays CVs submitted by users (in DOC, PDF or RTF format). CVs are stored in a folder for e.g. user_cv

Admin can select the CVs to be printed and then click on Print button. This should send all documents to printer for printing. How do I do that in PHP?

Please check following screenshot.

 

screenshotfe8.th.jpg

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/70852-printing-documents-from-php/
Share on other sites

Hmm..some cool solutions here...but just to clarify one point. All CVs will be stored on web server and the admin will be using a browser to print them like I said. That means I will have to first download CVs on client machine and then send them to print!?

Ok I tried to implement the CSS print technique as follows but it prints a blank page.

 

<html>
    <head>
       <link rel=alternate media=print href="myfile1.doc">
       <title>PRINT CV</title>
    </head>
    <body>
        Print This Page
    </body>
</html>

 

The file myfile1.doc exsits and there is text written in it but it only prints a blank page. What could be the reason?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.