[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3 |
Date: |
Mon, 05 Sep 2005 15:25:13 -0700 |
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();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3,
Joshua Ferraro <=