From 8f9f313d28983f88ab8749c656f1a1674569ded6 Mon Sep 17 00:00:00 2001 From: Adrian Johnson Date: Fri, 19 Sep 2014 21:35:48 +0930 Subject: [PATCH 11/12] pdftocairo: rename duplex values --- utils/pdftocairo-win32.cc | 6 +++--- utils/pdftocairo.1 | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/utils/pdftocairo-win32.cc b/utils/pdftocairo-win32.cc index 5f184d1..f6ca7ea 100644 --- a/utils/pdftocairo-win32.cc +++ b/utils/pdftocairo-win32.cc @@ -49,9 +49,9 @@ static void parseSource(GooString *source) static const Win32Option win32DuplexMode[] = { - {"simplex", DMDUP_SIMPLEX}, - {"horizontal", DMDUP_HORIZONTAL}, - {"vertical", DMDUP_VERTICAL}, + {"off", DMDUP_SIMPLEX}, + {"short", DMDUP_HORIZONTAL}, + {"long", DMDUP_VERTICAL}, {NULL, 0} }; diff --git a/utils/pdftocairo.1 b/utils/pdftocairo.1 index 8725722..00d93c4 100644 --- a/utils/pdftocairo.1 +++ b/utils/pdftocairo.1 @@ -268,7 +268,10 @@ Selects the source paper tray to be used (bin). The possible values are "upper", "envmanual", "auto", "tractor", "smallfmt", "largefmt", "largecapacity", "formsource", or a numeric value to choose a driver specific source. .TP .BI duplex -Sets the duplex mode of the printer. It can be "simplex", "horizontal" or "vertical". General option \-duplex is a synonym of "duplex=horizontal". If both are specified, the \-printopt one has priority. +Sets the duplex mode of the printer. The possible values are "off", "short" or "long", +indicating no duplexing, short-edge binding, or long-edge binding, respectively. +General option \-duplex is a synonym of "duplex=long". If both options are specified, +\-printopt has priority. .SH AUTHOR The pdftocairo software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright 2005-2011 The Poppler Developers. -- 2.1.0