diff options
author | Till Kamppeter <till.kamppeter@gmail.com> | 2016-07-22 09:32:54 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2016-07-21 07:45:22 +0200 |
commit | 833ad776316b474e6c74a96c2a0af211170c7d90 (patch) | |
tree | 7e9701215f5ecc3e0b30fd38d0e02ccc3b72528f /prnt/hpijs/ljmono.cpp | |
parent | 14a399aeb0e91bf92f64b5515327a1486720980d (diff) |
Fixed short-edge duplex for non-PS laser printers
LP: #244295
Patch-Name: pjl-duplex-binding.patch
Diffstat (limited to 'prnt/hpijs/ljmono.cpp')
-rw-r--r-- | prnt/hpijs/ljmono.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/prnt/hpijs/ljmono.cpp b/prnt/hpijs/ljmono.cpp index 67a0077d6..8d3ad4dab 100644 --- a/prnt/hpijs/ljmono.cpp +++ b/prnt/hpijs/ljmono.cpp @@ -212,6 +212,19 @@ DRIVER_ERROR HeaderLJMono::StartSend () err = thePrinter->Send ((const BYTE *) res, strlen (res)); ERRCHECK; +// Binding directive + + strcpy (res, "@PJL SET BINDING=LONGEDGE\015\012"); + +#ifdef APDK_AUTODUPLEX + if (thePrintContext->QueryDuplexMode () == DUPLEXMODE_TABLET) + { + strcpy (res, "@PJL SET BINDING=SHORTEDGE\015\012"); + } +#endif + err = thePrinter->Send ((const BYTE *) res, strlen (res)); + ERRCHECK; + err = thePrinter->Send ((const BYTE*) EnterLanguage, sizeof (EnterLanguage)); ERRCHECK; |