Large Posted April 18, 2003 Share Posted April 18, 2003 I have found these commands in the PHP manual to output to a local printer. Link : Printer commands in the PHP Manual How can use these commands to send a text document to a printer, ie : I want to print out an address from a PHP address book in the center of an envelope. Any idea's ? :unsure: Kind regards Link to comment Share on other sites More sharing options...
0 zivan56 Posted April 19, 2003 Share Posted April 19, 2003 $handle = printer_open(); printer_start_doc($handle, "My Document"); printer_start_page($handle); $font = printer_create_font("Arial",72,48,400,false,false,false,0); printer_select_font($handle, $font); printer_draw_text($handle, "test", 10, 10); printer_delete_font($font); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); Direct code from php.net Link to comment Share on other sites More sharing options...
Question
Large
I have found these commands in the PHP manual to output to a local printer.
Link : Printer commands in the PHP Manual
How can use these commands to send a text document to a printer, ie : I want to print out an address from a PHP address book in the center of an envelope.
Any idea's ? :unsure:
Kind regards
Link to comment
Share on other sites
1 answer to this question
Recommended Posts