summaryrefslogtreecommitdiff
path: root/prnt/hpijs/ljmono.cpp
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2016-07-22 09:32:54 +0200
committerDidier Raboud <odyx@debian.org>2021-09-03 08:36:53 +0200
commit8f031ccdec919e698cab2099fab021fcec47501c (patch)
tree94689ec96a89fcef50196db01356e83180f8b128 /prnt/hpijs/ljmono.cpp
parent5f37bd8c72b7525c8b1b678e5ad5c5c76119a2c8 (diff)
Fixed short-edge duplex for non-PS laser printers
LP: #244295
Diffstat (limited to 'prnt/hpijs/ljmono.cpp')
-rw-r--r--prnt/hpijs/ljmono.cpp13
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;