From: "Urs Rau (UK)" <urs.rau@om.org>
To: help-gnu-emacs@gnu.org
Subject: emacs inject a prolog to print jobs?
Date: Sat, 18 Dec 2010 22:57:04 +0000 [thread overview]
Message-ID: <AANLkTik7DRh4k2BOTZgVRYgf7PWjNA_917=CkxM1uqta@mail.gmail.com> (raw)
I am using the latest emacs under Mac OS X 10.6.x and would like to
print emacs buffers to a xerox printer that needs accounting codes
sent as a prolog to the print job.
Pretty sure I am not the first one that needs to do that, any hints or
links to a solution for this? How does one combine postscript files ?
Mac OS X uses, (or can use) lpr for printing, so maybe that would be
the easiest to get working?
The xerox accounting "prolog" looks something like this :
^[%-12345X@PJL JOB NAME = "new 2"
@PJL ENTER LANGUAGE = POSTSCRIPT
%!PS
%%XRXbegin
%%OID_ATT_JOB_OWNER "user1"
%%OID_ATT_JOB_NAME "new 2"
%%OID_ATT_JOB_TYPE OID_VAL_JOB_TYPE_PRINT;
%%OID_ATT_PROCESS_GRAYSCALE_GRAPHICS_ENABLED TRUE;
%%OID_ATT_CONTENT_ORIENTATION OID_VAL_CONTENT_ORIENTATION_PORTRAIT;
%%OID_ATT_START_SHEET OID_VAL_JOB_SHEET_FULL;
%%OID_ATT_ACCOUNTING_INFORMATION_AVP "XRX_USERID,usr";
%%OID_ATT_COLOR_MODE OID_VAL_COLOR_MODE_AUTOMATIC;
%%XRXend
The actual accouting line that makes all the difference is:
%%OID_ATT_ACCOUNTING_INFORMATION_AVP "XRX_USERID,usr";
How does one construct such a postscript filtering pipe to allow
printing form emacs?
Thanks for any pointers.
--
Urs Rau
next reply other threads:[~2010-12-18 22:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-18 22:57 Urs Rau (UK) [this message]
2010-12-19 9:37 ` emacs inject a prolog to print jobs? Peter Dyballa
2010-12-21 21:51 ` Urs Rau (UK)
2010-12-22 0:06 ` Peter Dyballa
2010-12-19 10:46 ` Peter Dyballa
2010-12-21 21:51 ` Urs Rau (UK)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTik7DRh4k2BOTZgVRYgf7PWjNA_917=CkxM1uqta@mail.gmail.com' \
--to=urs.rau@om.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).