tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: millers () grl008 ! dnet ! bp ! com
To: tru64-unix-managers
Subject: SUMMARY: Printing NSR documentation
Date: Thu, 25 Apr 1996 08:41:16 +0000	[thread overview]
Message-ID: <96076331021471.tru64-unix-managers.marc@archive.invalid> (raw)

 Summary - How to print NSR poscript documents


Thanks to Adrian Ho (  adrianho@nii.ncb.gov.sg ) who advised the following we 
can now print the documents we require

Adrian advised ....


If you're referring to a postscript file with:

  % Frame ps_prolog 4.0, for use with Frame 4.0 products

somewhere in the header, then it's a well-known problem for folks like us 
who use A4-sized paper.  Here's the easy solution:

(1) Use your favorite editor on the postscript file to look for the string
"papersize".  You should see the following 16 lines surrounding the first
occurrence of string that you find: 

FMLevel1 {
  manualfeed {setmanualfeed} if
  /FMdicttop countdictstack 1 add def
  /FMoptop count def
  setpapername
  manualfeed {true} {papersize} ifelse
  {manualpapersize} {false} ifelse
  {desperatepapersize} {false} ifelse
  { (Can't select requested paper size for Frame print job!) FMFAILURE } if
    count -1 FMoptop {pop pop} for
    countdictstack -1 FMdicttop {pop end} for
  }
  {{1 dict dup /PageSize [paperwidth paperheight]put setpagedevice}stopped
  { (Can't select requested paper size for Frame print job!) FMFAILURE } if
  {1 dict dup /ManualFeed manualfeed put setpagedevice } stopped pop }
ifelse

(2) Comment out all 16 lines by prepending a "%" character, like this:

% FMLevel1 {
%   manualfeed {setmanualfeed} if
%   /FMdicttop countdictstack 1 add def
%   /FMoptop count def
%   setpapername
%   manualfeed {true} {papersize} ifelse
%   {manualpapersize} {false} ifelse
%   {desperatepapersize} {false} ifelse
%   { (Can't select requested paper size for Frame print job!) FMFAILURE } if
%     count -1 FMoptop {pop pop} for
%     countdictstack -1 FMdicttop {pop end} for
%   }
%   {{1 dict dup /PageSize [paperwidth paperheight]put setpagedevice}stopped
%   { (Can't select requested paper size for Frame print job!) FMFAILURE } if
%   {1 dict dup /ManualFeed manualfeed put setpagedevice } stopped pop }
% ifelse

(3) Save and try printing again.  It should work this time.  8-)



Thanks to all who replied

Samantha Miller

BP Oil Grangemouth Refinery Ltd
Bo'ness Road
Grangemouth 
Stirlingshire FK3 9XQ
Scotland

                 reply	other threads:[~1996-04-25  8:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox