SP 204: Add bypass tray support

The printer is annoying for this one.  Unless you actually print to the bypass
tray, it will ignore it, so this must be set in the printer options.  The tray
is also annoying to use in that it's a manual feed, accepting one sheet at a
time.

Anyway, add the option to specify the bypass tray in the PPD and filter.

Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
James Bottomley 2014-07-23 12:11:35 -07:00 committed by Serge V Shistarev
parent b866c7b82d
commit db3a89f3ed
2 changed files with 10 additions and 4 deletions

View file

@ -77,8 +77,9 @@
*CloseUI: *MediaType
*OpenUI *InputSlot/Media Source: PickOne
*OrderDependency: 10 AnySetup *InputSlot
*DefaultInputSlot: Auto
*InputSlot Auto/Auto: "<</MediaPosition 0>>setpagedevice"
*DefaultInputSlot: TRAY1
*InputSlot MANUALFEED/Bypass Tray: "<</MediaPosition 0>>setpagedevice"
*InputSlot TRAY1/Tray 1: "<</MediaPosition 1>>setpagedevice"
*CloseUI: *InputSlot
*OpenUI *Resolution/Resolution: PickOne
*OrderDependency: 10 AnySetup *Resolution

View file

@ -37,6 +37,7 @@ options="$5"
pagesize="A4"
resolution="600"
mediasource="TRAY1"
for opt in $options; do
case "$opt" in
PageSize=*)
@ -45,6 +46,10 @@ for opt in $options; do
Resolution=*)
resolution=${opt#Resolution=}
resolution=${resolution%dpi}
;;
InputSlot=*)
mediasource=${opt#InputSlot=}
;;
esac
done
@ -104,7 +109,7 @@ EOF
cat <<EOF
@PJL SET PAGESTATUS=START$e
@PJL SET COPIES=1$e
@PJL SET MEDIASOURCE=AUTO$e
@PJL SET MEDIASOURCE=$mediasource$e
@PJL SET MEDIATYPE=PLAINRECYCLE$e
@PJL SET PAPER=$pagesize$e
@PJL SET PAPERWIDTH=$xs$e
@ -169,7 +174,7 @@ EOF
cat <<EOF
@PJL SET PAGESTATUS=START$e
@PJL SET COPIES=1$e
@PJL SET MEDIASOURCE=AUTO$e
@PJL SET MEDIASOURCE=$mediasource$e
@PJL SET MEDIATYPE=PLAINRECYCLE$e
@PJL SET PAPER=$pagesize$e
@PJL SET PAPERWIDTH=$xs$e