[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.2.2.1
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.2.2.1 |
Date: |
Mon, 05 Sep 2005 15:18:11 -0700 |
Update of /cvsroot/koha/koha/barcodes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11788
Modified Files:
Tag: rel_2_2
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.2.2.1
diff -C2 -r1.2 -r1.2.2.1
*** pdfViewer.pl 20 Sep 2004 15:03:27 -0000 1.2
--- pdfViewer.pl 5 Sep 2005 22:18:09 -0000 1.2.2.1
***************
*** 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.2.2.1,
Joshua Ferraro <=
- Prev by Date:
[Koha-cvs] CVS: koha/C4 Members.pm,1.9,1.10 Search.pm,1.106,1.107
- Next by Date:
[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3
- Previous by thread:
[Koha-cvs] CVS: koha/C4 Members.pm,1.9,1.10 Search.pm,1.106,1.107
- Next by thread:
[Koha-cvs] CVS: koha/barcodes pdfViewer.pl,1.2,1.3
- Index(es):