Jim Easton wrote:

> Dirk De Pauw wrote: (private mail)
> > > When you turn the printer on send it the following job;
> > >
> > > %!
> > > serverdict begin 0 exitserver
> > > << /Policies << /PageSize 3 >> >> setpagedevice
> >
> > When I lpr this to the printer, nothing happens: it keeps operating like it
> > did before.  Same thing goes for the commands at the bottom of the mail you
> > sent me (it doesn't give any output in the status or status.lp file). Am I
> > doing something wrong (I'm not a sysadmin guru).
>
> Oh hell.  That probably means that something is resetting it for
> every job (most likely the job itself) I very much doubt if it's
> being blocked by the queue filter but I really can't tell because
> we don't actually run LPRng.
>
> Dirk De Pauw wrote further:
> > [EMAIL PROTECTED] wrote:
> > > > We had more or less the same problem and we solve it just
> > > adding
> > > > as a default Z a4 in the printcap printer entry:
> > > > ifhp=a4
> > >
> > > Much thanks, it solved our problem.
> >
> > Actually it only solved the problem when someone selects letter for a printjob
> > if the document defaults are set to A4 (for example in MS-Word).
>
> Now that's your problem (viz. MS-Word)  :-)
>
> Seriously; isn't that what you needed? I guess I'm confused - Color
> me stupid - I don't think I understand what the problem is anymore.
>

First of all. Let me restate our problem. I just want to avoid that a "stupid" user
creates some  letter printjob which will jam our printer (then he has to press the
continue button for every page).  The ifhp=a4 sollution apparently only works when
the document defaults are set to a4 and you select letter pagesize (when the
document defaults are set to letter it doesn't work). But this only works for
Microsoft programs and Netscape but not for programs like PCTex and Ghostview (I
have absolutely no idea why).  I'm very glad it works like this, it's certainly an
improvement but it's not a complete sollution.
I would really like to see that whatever pagesize or document defaults that are
set, it gets printed on A4. But I'm probaly asking to much.

> With reference to the script that asks what the value is I'll try to
> get some time to make a job that prints those values instead of
> sending it back to the driver so you don't have to go rummaging
> through print logs and stuff.  It would be instructive to know if
> that option is actually getting set.

About the scripts you send me.  After the last script you send me:

%!
% this script is to print various system variables.
% there's got to be better way to do this but it's
% the best I could do on short notice.
%       Jim Easton
%       Dept of computing Science
%       Univerity  of Alberta - Canada

/linerat        1.375           def     % sets line spacing
72 72 scale                             % convert to inches
/cr     {                               % new line function
        /yline yline linerat fontsize mul sub def
        xmargin yline moveto
        } def
/tab    { xmargin tablen add yline moveto } def         % do a tab
/yline  10 def                          % start at 10 inches
/xmargin 1 def                          % left had side margin
/tablen  2 def                          % length of tab from margin

xmargin yline moveto
/fontsize .25 def                       % quarter inch font
/Helvetica findfont fontsize scalefont setfont

statusdict begin
        (printername)   show tab 30 string printername show cr
        (product is)    show tab product show cr
        (appletalktype) show tab appletalktype show cr
        (total pages)   show tab pagecount 10 string cvs show cr
        (size of page)  show tab
                currentpagedevice
                % there's got to be a better way to do this
                /PageSize get aload pop exch
                        30 string cvs show (, ) show
                        30 string cvs show cr
        (PageSize policy)       show tab
                currentpagedevice
                /Policies get /PageSize get 30 string cvs show
        end
showpage

I got following output:

printername    LaserJet 4 Plus
product is        HP LaserJet 4 Plus
appletalktype    LaserWriter
total pages    446289
size of page 595, 842
PageSize policy 3

As you can see the PageSize policy is indeed set to 3. So it should rescale the
printjobs to whatever paper it has, but it doesn't do that. Why ?

Dirk
________________________________________________________________________

 ir. Dirk De Pauw
 BIOMATH
 Department Applied Mathematics, Biometrics and Process Control
 Ghent University, Coupure Links 653, B-9000 GENT, Belgium

 Tel.: +32 9 264 5935
 Fax.: +32 9 264 6220
 e-mail: [EMAIL PROTECTED]
 ________________________________________________________________________



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