diff --git a/C4/Labels.pm b/C4/Labels.pm index ce8f359530..b9b0dec6f9 100644 --- a/C4/Labels.pm +++ b/C4/Labels.pm @@ -44,9 +44,9 @@ BEGIN { &CreateTemplate &SetActiveTemplate &SaveConf &GetTextWrapCols &GetUnitsValue - &DrawSpineText - &DrawBarcode - &DrawPatronCardText + &DrawSpineText + &DrawBarcode + &DrawPatronCardText &get_printingtypes &GetPatronCardItems &get_layouts &get_barcode_types @@ -1165,7 +1165,7 @@ sub DrawBarcode { ySize => ( .02 * $height ), xSize => $xsize_ratio, hide_asterisk => 1, - mode => '', # the only other option here is Type3... + mode => 'graphic', # the only other option here is Type3... ); }; } @@ -1186,7 +1186,7 @@ sub DrawBarcode { ySize => ( .02 * $height ), xSize => $xsize_ratio, hide_asterisk => 1, - mode => '', # the only other option here is Type3... + mode => 'graphic', # the only other option here is Type3... ); }; } @@ -1208,7 +1208,7 @@ sub DrawBarcode { xSize => $xsize_ratio, hide_asterisk => 1, text => 0, - mode => '', # the only other option here is Type3... + mode => 'graphic', # the only other option here is Type3... ); }; } @@ -1297,7 +1297,7 @@ sub build_circ_barcode { # prolong => 2.96, xSize => .85, ySize => 1.3, - mode => '', # the only other option here is Type3... + mode => 'graphic', # the only other option here is Type3... ); }; } diff --git a/labels/label-print-pdf.pl b/labels/label-print-pdf.pl index 6f48170e1b..3534af2f30 100755 --- a/labels/label-print-pdf.pl +++ b/labels/label-print-pdf.pl @@ -112,6 +112,7 @@ print $cgi->header( -type => 'application/pdf', -attachment => 'barcode.pdf' ); prInitVars(); $| = 1; prFile(); # No args means to STDOUT +prCompress(1); # turn on zip compression which dramatically reduces file size prMbox( $lowerLeftX, $lowerLeftY, $upperRightX, $upperRightY ); # drawbox( $lowerLeftX, $lowerLeftY, $upperRightX, $upperRightY ); #do page border