[Koha-cvs] koha/barcodes label-print-pdf.pl [rel_2_2]

Mason James szrj1m at yahoo.com
Thu Nov 16 03:15:49 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_2_2
Changes by:	Mason James <sushi>	06/11/16 02:15:49

Modified files:
	barcodes       : label-print-pdf.pl 

Log message:
	removed need for a writable tmp dir to generate pdf before sending to browser

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/barcodes/label-print-pdf.pl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.1.2.14&r2=1.1.2.15

Patches:
Index: label-print-pdf.pl
===================================================================
RCS file: /sources/koha/koha/barcodes/label-print-pdf.pl,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -b -r1.1.2.14 -r1.1.2.15
--- label-print-pdf.pl	14 Nov 2006 23:25:48 -0000	1.1.2.14
+++ label-print-pdf.pl	16 Nov 2006 02:15:49 -0000	1.1.2.15
@@ -57,10 +57,12 @@
 my $upperRightY = 792;
 
 # setting up the pdf doc
-#remove the file before write, for testing
-unlink "$htdocs_path/barcodes/new.pdf";
-prFile("$htdocs_path/barcodes/new.pdf");
-prLogDir("$htdocs_path/barcodes");
+
+prInitVars();
+$| = 1;
+print STDOUT "Content-Type: application/pdf \r\n\r\n";
+prFile();
+
 prMbox( $lowerLeftX, $lowerLeftY, $upperRightX, $upperRightY );
 prFont('courier');    # Just setting a font
 prFontSize(9);





More information about the Koha-cvs mailing list