SUMMARY: Printing NSR documentation

From: <millers_at_grl008.dnet.bp.com>
Date: Thu, 25 Apr 1996 04:41:16 -0400

 Summary - How to print NSR poscript documents


Thanks to Adrian Ho ( adrianho_at_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
Received on Thu Apr 25 1996 - 11:14:21 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT