From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Urs Rau (UK)" Newsgroups: gmane.emacs.help Subject: emacs inject a prolog to print jobs? Date: Sat, 18 Dec 2010 22:57:04 +0000 Message-ID: Reply-To: urs.rau@om.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1292736717 4398 80.91.229.12 (19 Dec 2010 05:31:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Dec 2010 05:31:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 19 06:31:53 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUBs8-0005UY-Nf for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Dec 2010 06:31:52 +0100 Original-Received: from localhost ([127.0.0.1]:48518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUBs7-0001kO-Uj for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Dec 2010 00:31:52 -0500 Original-Received: from [140.186.70.92] (port=34396 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU5i7-00033O-FU for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 17:57:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PU5i5-0006gV-Ht for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 17:57:07 -0500 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:56971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PU5i5-0006fc-FK for help-gnu-emacs@gnu.org; Sat, 18 Dec 2010 17:57:05 -0500 Original-Received: by qyk10 with SMTP id 10so1788293qyk.0 for ; Sat, 18 Dec 2010 14:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :date:x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2vpu4r912VfWsIqAe8cMJEcteqzzHv9r+93v4FOrFy8=; b=EUIPhqqlt0x3ELACJCnWq6gZ0Xil5tCds1jIP8K8NbhYUMFyM0/BID7AorXPa0u3F3 J7Ssbk4wRMXh9AbstRgXIvRNS5o3v6L7Xdy2TOeMp6VU2IslzcF/mvb0XVbRh32fsVZ8 M3Z1edMDOgfQkAhxNw1XZlzxjIv+P9cu+wN2Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type:content-transfer-encoding; b=U6/JTjbYQwEJlMNm/NVKJCFms/dDNZSOVBvgrVvRHiiB09CzQTMvN3tn0unAH8JSHg Y6wd3xnhFgXOnENoMPNDo3HQXNcUuBOev0wZA9ADq2MgtrhktP/55KsLR80QEuIbL/rk SObTWUG2bWkl7B8qi7eHS2PYFVw7JhGWJYqMY= Original-Received: by 10.229.75.8 with SMTP id w8mr2258441qcj.94.1292713024677; Sat, 18 Dec 2010 14:57:04 -0800 (PST) Original-Received: by 10.229.114.146 with HTTP; Sat, 18 Dec 2010 14:57:04 -0800 (PST) X-Google-Sender-Auth: G59H5qt9QWCbEnyiD_O6ZMiP8zQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sun, 19 Dec 2010 00:30:55 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77668 Archived-At: 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 : =1B%-12345X@PJL JOB NAME =3D "new 2" @PJL ENTER LANGUAGE =3D 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. --=20 Urs Rau