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

Mason James szrj1m at yahoo.com
Fri Jul 7 05:46:31 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Changes by:	Mason James <sushi>	06/07/07 03:46:31

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

Log message:
	

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

Patches:
Index: label-print-pdf.pl
===================================================================
RCS file: /sources/koha/koha/barcodes/label-print-pdf.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- label-print-pdf.pl	7 Jul 2006 03:34:59 -0000	1.8
+++ label-print-pdf.pl	7 Jul 2006 03:46:31 -0000	1.9
@@ -171,9 +171,19 @@
 
 ( $pagewidth, $pageheight ) = $pdf->getPageDimensions();
 my $y_pos = ( $y_pos_initial_startrow + 90 );
+
+# this left aligns the spine label text, centering would be better, 
+# but word-wrapping breaks with centering on. :(
 $pdf->setAlign('left');
+
+# this sets the font size for the spine label text.
+# if your text strings are extending past the right label border
+# and arnt getting wrapped properly, reduce the font size some
+# fyi: PDF::Report wont wrap continuious strings with no spaces in them, correctly
+
 $pdf->setSize(9);
 
+
 my $page_break_count = $startrow;
 
 foreach $item (@resultsloop) {





More information about the Koha-cvs mailing list