From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- dviware/dvipsconfig/config.envelope | 64 +++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 dviware/dvipsconfig/config.envelope (limited to 'dviware/dvipsconfig/config.envelope') diff --git a/dviware/dvipsconfig/config.envelope b/dviware/dvipsconfig/config.envelope new file mode 100644 index 0000000000..b2ea4ed294 --- /dev/null +++ b/dviware/dvipsconfig/config.envelope @@ -0,0 +1,64 @@ +%! +% config.envelope +% Configuration and header file for dvips. Load with: dvips -P envelope +% +% Selects paper from what often is the envelope feeder. +% This should work with these HP LaserJet printers: +% 4/4M Plus PS 300 + 600 +% 4V/4MV PostScript +% 5/5M PostScript, 5P/5MP PostScript +% 5Si/5Si MX PS, 5Si Mopier PS +% This is very unlikely to work with these HP LaserJet printers because they +% select trays via media type and not media position: +% 4Si/4SiMX PS 300dpi + 600dpi +% 4/4M PS 600 dpi +% Tested with: +% gs 5.10, ... +% Will be silently ignored by a PS level 1 PostScript interpreter, +% or any other which doesn't know /MediaPosition. +% +% This file is built so it can be used both as the header file for +% PostScript and as the configuration file for dvips. +% (Note that dvips ignores any lines beginning with a space or a "%".) +% +% Copyright (C) 1995-2006 by Volker Kuhlmann. +% Released under the terms of the GNU General Public License (GPL) Version 2. +% See http://www.gnu.org/ for details. +% +% Steffen Klupsch +% 15 Mar 2000 +% Volker Kuhlmann +% 21 Mar 2000 +% + /setpagedevice where + { + %dup { pstack flush pop pop } forall pstack flush + pop % remove dict name + % check whether pagedevice dict has /DeferredMediaSelection + % (gs 3.33 has setpagedevice, but error on /DeferredMediaSelection) + /hasDMS false def + currentpagedevice + { + /DeferredMediaSelection eq { /hasDMS true def } if + pop % throw value of key + } forall + hasDMS { + << + /DeferredMediaSelection true % what exactly is this? + >> + setpagedevice + } if + % gs 5.10, 6.0: error on /MediaPosition + currentpagedevice /MediaPosition known { + << + /MediaPosition 2 % select tray + >> + setpagedevice + } if + } if +% + { % start a procedure so PostScript `ignores' the dvips configuration part. +h config.envelope + } pop % PostScript cleanup +% +% EOF config.envelope -- cgit v1.2.3