This script will produce a second postscript file with the output
from IBrowse scaled down to fit your laser printer's paper size.
It's probably only of use to people who have postscript laser
printers.
This script requires AFPL Ghostscript 8.50, available from:
http://www.whoosh777.pwp.blueyonder.co.uk/
BEFORE YOU RUN THE SCRIPT:
Make sure you edit the following line near the end of the script:
ADDRESS COMMAND 'echo >>T:Tmp' '"GS850:bin/gs -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dDEVICEWIDTHPOINTS=918 -dDEVICEHEIGHTPOINTS=1188 -q -dBATCH -dNOPAUSE -sOutputFile=T:temp.pdf $InFile"'
You need to change the point sizes for the following two parameters:
"-dDEVICEWIDTHPOINTS=918" and "-dDEVICEHEIGHTPOINTS=1188"
In my "Postscript Printer Preferences" I have the "Paper Format"
set to "Custom", and my "Paper Width" and "Paper Height" are set
to 12.75 inches and 16.50 inches respectively. Thus, at 72 points
per inch I end up with the two values above of 918 and 1188.
You will need to calculate the point size values based on your own
workbench PS prefs and edit this script accordingly.
The script also assumes that GS8.50's executible is located at
"GS850:bin/gs". If this is not the case with your Ghostscript
installation you will need to edit this portion of the script
as well.
New to version 1.5 is a switch for controlling the postscript level
of the output. "-dLanguageLevel=2" sets the postscript level to 2.
You can also use values of 1, 1.5, or 3, but 3 currently produces
the same output as level 2 with GS8. Try different levels if level
2 postscript isn't working with your laser printer.
USAGE:
I believe using the script is rather straight-forward.
First select the source PS file. Then select a file location
for the scaled-down output PS file. Finally, select the page size
you want the scaled file to fit.
T: will by used by the script for two temporary files. One file
will be a pdf which can be as large as the original Ibrowse PS
output. |