X-Git-Url: http://git.harvie.cz/?p=mirrors%2FSokoMan.git;a=blobdiff_plain;f=assistants%2Fprint-labels.inc.php;fp=assistants%2Fprint-labels.inc.php;h=450869dc6020ff235a4c3a4d6b79ccc68a7a3945;hp=80f37eb09880f5f01e49416c4a1efd89236f7729;hb=9de26d46b8f9af9a5612346dbdfdc3cb3292bef5;hpb=8248c7125a50c5fe61f4ac95046e1ab2fc5379e6 diff --git a/assistants/print-labels.inc.php b/assistants/print-labels.inc.php index 80f37eb..450869d 100644 --- a/assistants/print-labels.inc.php +++ b/assistants/print-labels.inc.php @@ -5,8 +5,9 @@ $enctype = 'code128b'; $geometry = ''; $count = $_POST['cols']*$_POST['rows']*$_POST['pages']; + $papersize = isset($_POST['paper']) ? $_POST['paper'] : 'a4'; - $table = '-p A4 -t '.escapeshellarg( + $table = '-p '.escapeshellarg($papersize).' -t '.escapeshellarg( $_POST['cols'].'x'.$_POST['rows']. '+'.$_POST['left'].'+'.$_POST['bottom'].'-'.$_POST['right'].'-'.$_POST['top'] ); @@ -18,7 +19,7 @@ case 'debug': case 'dbg': break; case 'pdf': - $convert='| ps2pdf -dCompatibility=1.2 - -'; + $convert='| ps2pdf -dOptimize=true -sPAPERSIZE='.escapeshellarg($papersize).' -dCompatibility=1.2 - -'; header('Content-Type: application/pdf'); break; default: case 'ps': @@ -38,6 +39,10 @@ ↔ Sloupců
↕ Řádků
↵ Stran
+ Formát papíru:
Okraje