On 12/20/2015 1:36 PM, Pablo Rodriguez wrote:
Hans,
in some printers in which duplex printing is enabled by default, a
"single" value for duplex printing is required to disable it.
I attach the patch that implements this.
we don't have a single keyword so i'll make it 'page' and you document
all these options on the wiki
local pagespecs = {
[variables.max] = { mode = "FullScreen", layout = false,
fit = false, fixed = false, duplex = false },
[variables.bookmark] = { mode = "UseOutlines", layout = false,
fit = false, fixed = false, duplex = false },
[variables.fit] = { mode = "UseNone", layout = false,
fit = true, fixed = false, duplex = false },
[variables.doublesided] = { mode = "UseNone", layout =
"TwoColumnRight", fit = true, fixed = false, duplex = false },
[variables.singlesided] = { mode = "UseNone", layout = false,
fit = false, fixed = false, duplex = false },
[variables.default] = { mode = "UseNone", layout = "auto",
fit = false, fixed = false, duplex = false },
[variables.auto] = { mode = "UseNone", layout = "auto",
fit = false, fixed = false, duplex = false },
[variables.none] = { mode = false, layout = false,
fit = false, fixed = false, duplex = false },
-- new
[variables.fixed] = { mode = "UseNone", layout = "auto",
fit = false, fixed = true, duplex = false }, -- noscale
[variables.landscape] = { mode = "UseNone", layout = "auto",
fit = false, fixed = true, duplex = "DuplexFlipShortEdge" },
[variables.portrait] = { mode = "UseNone", layout = "auto",
fit = false, fixed = true, duplex = "DuplexFlipLongEdge" },
[variables.page] = { mode = "UseNone", layout = "auto",
fit = false, fixed = true, duplex = "Simplex" },
}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
dev-context mailing list
dev-context@ntg.nl
http://mailman.ntg.nl/mailman/listinfo/dev-context