Home »
Public Forums »
archive »
Ghostscript & Ghostview as IDL Manual Browser
Ghostscript & Ghostview as IDL Manual Browser [message #1512] |
Thu, 02 December 1993 08:17 |
oet
Messages: 28 Registered: February 1993
|
Junior Member |
|
|
If someone is using Ghostscript (2.6.1pl4) & Ghostview (1.5) as
IDL Manual browser the following hint might be useful:
The ps manual files distributed on the IDL 3.5 CD-Rom are created by
Framemaker. The current Framemaker version produces postscript files without the standard '%!PS-Adobe-' header. Ghostview has limited handling capabilites of non-
standard postscript files. Backward paging, skipping to any page or
marking pages are not possible. We applied the short script below
to insert the required header in the manual files. This way Ghostview & Ghostscript
can be used as manual browser without any restrictions.
-Thomas
#!/bin/csh
# only tested on SunOS 4.1.x and Solaris 2.3
cd $IDL_DIR/manuals
set files=`find . -name "*.ps" -print`
foreach file ($files)
echo "Updating $file ..."
sed 's/^\%\!/\%\!PS\-Adobe\-2\.0/' "$file" > "$file".tmp
mv "$file".tmp "$file"
end
|
|
|
Current Time: Sun Oct 12 06:10:37 PDT 2025
Total time taken to generate the page: 1.20148 seconds