<?
$dateiname="urlaub.pdf";
$handle = fopen ($dateiname, "r");
$contents = fread ($handle, filesize ($dateiname));
fclose ($handle);
echo $contents;
$handle = printer_open('\\dassnp02\kyo');
printer_set_option($handle, PRINTER_PAPER_FORMAT, PRINTER_FORMAT_A5);
printer_set_option($handle, PRINTER_MODE, "text");
printer_start_doc($handle, "My Document");
printer_start_page($handle);
printer_write($handle, $contents);
printer_end_doc($handle);
printer_close($handle);
?>
Hi i want to send a pdf-file as a printjob, but with this code, it just print the text, not as a pdf file :-(
Help!