Hi people,
Question: "is there a way that ifhp can be told to call another
filter"
Dirk De Pauw wrote:
> In our department we have a HP 4Mplus printer. Each time someone prints
> a LETTER pagesize we need to press the continue button for every page,
> because we don't use letter but A4.
> Is there a way to force the printer to always use A4 or to reject LETTER
> printjobs using the LPRng and the ifhp filter ?
What colour is a red face. I ran into this problem a long time
ago, only in reverse. Since I installed a solution in our queue
filter I had sort of forgotten about it.
The problem is the parameter "DeferredMediaSelection" that the
ppd files specify must be set true when setting a PageSize.
If it is true paper selection is done according the gospel of HP
rather than Adobe. Furthermore I couldn't find anyone at HP
that could/would tell me what the selection algorithms were even
for a particular printer.
Like I said before one has to keep trying things and observe how
the beast reacts. Suffice to say - it was not to our liking.
Someone at HP said, "If you don't like the parameter don't use
it" but "every application in the world is putting it in the
postscript how am I supposed to not use it?" I didn't get an
answer to that.
What I did was install some code in our filter which prevented
a postscript program from setting that parameter and our problem
went away.
I think what Dirk needs to do is run every job through a filter
that looks for that parameter and changes it to something else,
and it doesn't really matter what it is as long as it doesn't
correspond to a real parameter.
Unfortunately I can't be much help to him in this regard because
we don't run LPRng and I'm not familiar with it. I think the
question is "is there a way that ifhp can be told to call another
filter" or better yet be told to do some word swapping.?
If worse comes to worst one could put a wrapper around ifhp.
One thing I should mention is that sed won't do it. Postscript's
maximum line length is 256 characters but some of those bozos
that write applications ignore that. I've run into one line
postscript programs that are 40 Kb or more - sed has a finite
line length.
Finally: If you people can suggest a way of running it he could
have my filter.
Jim
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------