4 my($query) = $cgi->keywords;
5 $query =~ /^(\d+)(.pdf)?$/;
8 my $cust_bill = qsearchs('cust_bill',{'invnum'=>$invnum});
9 die "Invoice #$invnum not found!" unless $cust_bill;
11 my $pdf = $cust_bill->print_pdf;
13 http_header('Content-Type' => 'application/pdf' );
14 http_header('Content-Length' => length($pdf) );
15 http_header('Cache-control' => 'max-age=60' );