Index: invoices_pdfworkorder.php
===================================================================
--- invoices_pdfworkorder.php	(revision 162)
+++ invoices_pdfworkorder.php	(working copy)
@@ -107,11 +107,13 @@
 			if(!$pictureresult) reportError(300,"Error Retrieving Logo Graphic");
 			$thepicture=mysql_fetch_array($pictureresult);
 		
-		if($thepicture["type"]=="IMAGE/JPEG")			
-			$pdf->MemImage($thepicture["file"],$leftmargin,$topmargin,$tempwidth,0,"JPEG");	
+		if($thepicture["type"]=="IMAGE/JPEG")			{
+			$image = $thepicture["file"];
+			$pdf->Image('var://image',$leftmargin,$topmargin,$tempwidth,0,"JPEG");	
+		}
 		elseif($thepicture["type"]=="IMAGE/PNG")
 			$pdf->MemImage($thepicture["file"],$leftmargin,$topmargin,$tempwidth);	
-		
+
 		//next company name
 		$pdf->SetXY($tempwidth+$leftmargin,$topmargin);
 		$pdf->SetFont("Times","B",12);

