X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=assistants%2Fprint-labels.inc.php;h=aab8eea6dce3263cb2a9312ed6821b752952bdbe;hb=fcd9da7371aa50b7536bfc7513c19f23f1cbbdc6;hp=ecb55f3b85bfd473874f847870f354a33ea0ca45;hpb=0472e63b0dd8ee45ec2caf85e6512886222a73b2;p=mirrors%2FSokoMan.git diff --git a/assistants/print-labels.inc.php b/assistants/print-labels.inc.php index ecb55f3..aab8eea 100644 --- a/assistants/print-labels.inc.php +++ b/assistants/print-labels.inc.php @@ -13,9 +13,11 @@ $barcodes = ''; for($i=0;$i<$count;$i++) $barcodes.=' -b '.escapeshellarg($prefix.$i); - switch($_POST['print']) { + switch(strtolower($_POST['print'])) { + case 'debug': case 'dbg': + break; case 'pdf': - $convert='| convert - pdf:-'; + $convert='| ps2pdf -dCompatibility=1.2 - -'; header('Content-Type: application/pdf'); break; default: case 'ps': @@ -25,19 +27,23 @@ break; } error_reporting(0); - system("barcode -e $enctype $geometry $table $barcodes $convert"); + $cmd="barcode -e $enctype $geometry $table $barcodes $convert"; + if($_POST['print']=='Debug') die($cmd); + system($cmd); die(); } ?>
- ↔ Sloupců
- ↕ Řádků
+ ↔ Sloupců
+ ↕ Řádků
↵ Stran
- + - +
Okraje
- - + + +
+Pozor! Každý arch vytiskni jen jednou a radši ho hned po vytištění smaž!