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 ?

I had a much better idea for you on my way home last night
assuming that my surmize of what was happening was correct:
When you turn the printer on send it the following job;

%!
serverdict begin 0 exitserver
<< /Policies << /PageSize 3 >> >> setpagedevice

What this does is to permanently set the pagesize policy option to 3
which means it will survive from job to job.  This is assuming that
the queue filters don't disallow it somehow and that you don't get a
job that sets it for itself - some do.  However if a job does set it
for itself the value will revert to 3 for the next job.

It will not, however, survive a reboot.  If you repower the printer
you'll have to send it again.  Please let me know if it works for you.

> What this does is tell the printer that if it doesn't have the right
> sized paper that it should rescale the image to fit on what it does
> have.  Of course this works only if the job specifically requests a
> different sized paper.

If you want to check to see what various values are send it the 
following job.  The output should appear in the printer log.

        Jim

%!
statusdict begin
        (printername    ) print 30 string printername =
        (product is     ) print product =
        (appletalktype  ) print appletalktype =
        (total pages =  ) print pagecount =
%       (duplexmode is  ) print duplexmode =
%       (tumble is      ) print tumble =
%       /appletalktype (LaserWriter) def
%       (hp628) setprintername          % some require this form
%       /printername    (CS323) def     % and some require this
%       (defaultoutputtray is ) print defaultoutputtray =
%       /defaultoutputtray 1 def
%       (defaultoutputtray is ) print defaultoutputtray =
%       /outputtray 1 def
%       outputtray (out tray is ) print =
        flush
        end
currentpagedevice
        (size of page   ) print
        /PageSize get ==
        currentpagedevice
        /Policies get
        (PageSize policy option ) print
        /PageSize get == flush



-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------

Reply via email to