assign("pdffile","./temp/pdftemp/$tmppdfname.pdf"); //if($rechnung["typ_id"] == 1) //{ $pdf = makerawPDFcopy(0,$rechnung["drechnr"]); makefirstpage($pdf,$adresse["adresse"],$rechnung,0); if(count($artikel)) { $gesamtpreis = maketable($pdf,$artikel,$rechnung,0); } makeEndPage($pdf,$rechnung,$gesamtpreis,0); $tmppdfname = str_replace(array(" ","."),array("_","_"),microtime()); savePDF($pdf,"./temp/pdftemp/$tmppdfname.pdf"); $smarty->assign("pdffile2","./temp/pdftemp/$tmppdfname.pdf"); //} $smarty->display("rechshow.tpl"); ?>