[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3
Joshua Ferraro
joshferraro at users.sourceforge.net
Tue Sep 6 00:25:13 CEST 2005
Update of /cvsroot/koha/koha/barcodes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13242
Modified Files:
pdfViewer.pl
Log Message:
adding Content-Disposition to header to allow for browsers to recognize
it's a PDF by default, etc.
Index: pdfViewer.pl
===================================================================
RCS file: /cvsroot/koha/koha/barcodes/pdfViewer.pl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pdfViewer.pl 20 Sep 2004 15:03:27 -0000 1.2
--- pdfViewer.pl 5 Sep 2005 22:25:11 -0000 1.3
***************
*** 29,33 ****
--- 29,35 ----
# This script take a pdf filename as a parameter and output it to the browser.
my $cgi = new CGI;
+ my $filename = "barcodes.pdf";
my $tmpFileName = $cgi->param('tmpFileName');
+ print "Content-Disposition: attachment; filename = $filename\n\n";
print $cgi->header(-type => 'application/pdf'),
$cgi->start_html(-title=>"Codify to PDF");
***************
*** 36,38 ****
print;
}
! print $cgi->end_html();
\ No newline at end of file
--- 38,40 ----
print;
}
! print $cgi->end_html();
More information about the Koha-cvs
mailing list