I send a postscript banner page, via lprng, and then the pdf file gets sent by ifhp.
The xerox treats these as two separate jobs
in its job accounting, so i guess this is how I get away with it. At one point I also
got the postscript error you described, but
somehow I avoid it now. Here is the set up, notice that i have both lp= (for the
banner program) and ,dev=, for ifhp to use...
/etc/printcap
==============
xerox|lp|lp_auto|lp_raw|lp_ascii
:mc=0
xerox|xerox_server:server
#
#the wrapper was to solve a problem with earlier version of ifhp, probably not needed
now
# could just call ifhp
#
:filter=/usr/local/lib/filters/ifhp_wrapper.sh
-Tconfig=/etc/ifhp.conf,banner_suppressed
:tc=.common_xerox
:sd=/var/spool/lpd/xerox
.common_xerox
:lpd_bounce
:lp=xxx.yyy.zzz.abc%9100
# xerox phaser 4400
:ifhp=model=phaser4400,dev=xxx.yyy.zzz.abc%9100,of_options=pagecount,sync,ps_eoj_at_start@,waitend
:af=acct
:ps=status
:generate_banner
:direct_read
:sh@
:ab
:sb
:bs=/usr/local/lib/filters/lavhep_psbanner.sh
:mx=0
:mc=0
:ar
:la
and ifhp.conf ...
============
[ phaser4400 ]
appsocket
pjl@
pcl
ps
sync
# ge the pagecount via snmp...
pagecount=|/usr/local/lib/filters/xerox_pagecount.sh
file_output_match = [
*Postscript* ps
*postscript* ps
*pcl* pcl
*printer*job*language* pcl
*text*with*escape* pcl
*HTML* ps /usr/local/lib/filters/my_a2ps.sh \%{Z} --media=A4 -E -o-
#
# this printer knows how to print pdf !
#
*pdf* raw
*PDF* raw
*text* ps /usr/local/lib/filters/my_a2ps.sh \%{Z} --media=A4 -E -o-
]
----------------------------------------------------------------------------------
Henrik Edlund wrote:
>
> Hmm, I am not quite sure how it works for you. When I send a raw PDF to
> one of my 4400DT I get a "offending command error" on an error page.
>
> But then I issue a Postscript banner page before the PDF file, which might
> cause problem for the Xerox' PDF detection. How do you do? Do you send
> anything before the PDF?
>
> One might guess that the Xerox, if it supports PDF files, checks the first
> four characters of the job, if they are %PDF.
>
> Henrik
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body. For the impatient,
> to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
> with: | example:
> subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems, send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
--
Alex Finch, Research Fellow, Physics Department, Lancaster University.begin:vcard
n:Finch;Alex
x-mozilla-html:FALSE
org:Lancaster University;Physics Dept.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Research Fellow
x-mozilla-cpt:;0
fn:Alex Finch
end:vcard