Preview PostScript without DPS! I've placed inst'able images of the Ghostview/Ghostscript PostScript previewer on ftp.sgi.com in ~ftp/sgi/ghost. These images are built from: Ghostview 1.5 Ghostscript 4.01 and should work on any IRIX 5.3+ based SGI system. These programs should also be able to render onto any X display (even X terminals). I've made no significant changes to the authors' original source code, I've simply compiled it and made IRIX installable (inst'able) images from the result. The source code to both Ghostview and Ghostscript is included as part of the images. Just to be explicit; The authors do not work for SGI. Ghostscript is being redistributed under the terms of the Aladdin Ghostscript Public License as published by Aladdin Enterprises. Ghostview is being redistributed under the terms of the GNU General Public License as published by the Free Software Foundation. The README follows below, ...robert This software is provided without support and without any obligation on the part of Silicon Graphics, Inc. to assist in its use, correction, modification or enhancement. There is no guarantee that this software will be included in future software releases. THIS SOFTWARE IS PROVIDED "AS IS" WITH NO WARRANTIES OF ANY KIND INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. In no event will Silicon Graphics, Inc. be liable for any lost revenue or profits or other special, indirect and consequential damages, even if Silicon Graphics, Inc. has been advised of the possibility of such damages. Contents: ghost.tar A tar archive containing the necessary images to install executable copies of ghostscript 4.01 and ghostview 1.5 on an SGI workstation running IRIX 5.3+. Description: Ghostscript and Ghostview together provide a simple X based means for previewing PostScript documents. Below are the respective author's overviews in a shar format. Instructions: Copy ghost.tar to /usr/tmp. % su # mkdir /usr/local/dist # cd /usr/local/dist # tar xvf /usr/tmp/ghost.tar # inst -f /usr/local/dist Then follow the instructions from inst. To find out more about inst, consult the inst(1M) man page. The inst images of "ghost" in /usr/local/dist can be used by networked machines to install from. On the remote machine: % su # inst -f guest@"machine with images":/usr/local/dist Then follow the instructions from inst again. ...robert keller (rck@sgi.com) #!/bin/sh # This is a shell archive (shar 3.32) # made 08/28/1996 21:57 UTC by rck@fangio # Source directory /usr/local/src/gnu/ghost4.01e # # existing files WILL be overwritten # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 6993 -rw-r--r-- README.ghostscript # 6717 -r--r--r-- README.ghostview # if touch 2>&1 | fgrep 'amc' > /dev/null then TOUCH=touch else TOUCH=true fi # ============= README.ghostscript ============== echo "x - extracting README.ghostscript (Text)" sed 's/^X//' << 'SHAR_EOF' > README.ghostscript && X Copyright (C) 1989, 1996 Aladdin Enterprises. All rights reserved. X X This file is part of Aladdin Ghostscript. X X Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author X or distributor accepts any responsibility for the consequences of using it, X or for whether it serves any particular purpose or works at all, unless he X or she says so in writing. Refer to the Aladdin Ghostscript Free Public X License (the "License") for full details. X X Every copy of Aladdin Ghostscript must include a copy of the License, X normally in a plain ASCII text file named PUBLIC. The License grants you X the right to copy, modify and redistribute Aladdin Ghostscript, but only X under certain conditions described in the License. Among other things, the X License requires that the copyright notice and this notice be preserved on X all copies. X X- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - X X*************************************************** X* This file describes version 4.0 of Ghostscript. * X*************************************************** X XIf this is your first contact with Ghostscript, we suggest you read the file Xnew-user.txt before continuing with this README file. new-user.txt gives an Xoverview of: X X - what Ghostscript does (PostScript and PDF previewing, conversion, X and printing); X X - what its licensing terms are (free for ordinary use); X X - what platforms it runs on (every platform you're likely to be X interested in); X X - where to find some useful programs that enhance Ghostscript (like X user-friendly previewers for Unix, VMS, MS Windows, MS-DOS, and X Macintosh). X X - what to do if you have problems (the "If you need help" section). X XThe rest of this README file is a road map to the documentation files that Xare part of the fileset. If you are a new user, we suggest you look through Xit now. After that, we recommend you read install.txt, which tells you how Xto install Ghostscript, and make.txt, which tells you how to compile XGhostscript from source code (which is required before installation on Unix Xand VMS systems). X X******** X******** Documentation overview ******** X******** X XThere is a Ghostscript World Wide Web home page at X http://www.cs.wisc.edu/~ghost/index.html X XAll the file names mentioned in the documentation, except for README and XNEWS, are in lower case, which is the usual convention for Unix systems. On XMS-DOS systems, all file names are actually upper-case. X XWhat should I read if I'm a new user? X------------------------------------- X XIf you are a new user of Ghostscript, you should start by reading: X X> new-user.txt - information specifically for new users. X XThen read as many of the following as seem relevant: X X> install.txt - information about how install Ghostscript. X X> use.txt - information about to use Ghostscript. Some of this information Xis also contained in gs.1 - a `man' page for Ghostscript. X X> The catalog at the beginning of devs.mak, which lists all the devices for Xwhich Ghostscript is able to produce output (although if you got Ghostscript Xin binary form, it will only include a subset of these devices). X X> devices.txt - more detailed information about some specific devices that XGhostscript knows about. X X> ps2epsi.txt, unix-lpr.txt - more detailed information about some of Xthe shell scripts and batch files distributed with Ghostscript. X XIf you have Aladdin Ghostscript, as opposed to the GNU Ghostscript releases Xdistributed by the Free Software Foundation, you should read (or at least Xskim through): X X> public.txt - additional information about Aladdin Ghostscript releases Xthat is not relevant to GNU Ghostscript releases. X XIf you are going to compile Ghostscript, rather than just use an executable Xyou got from somewhere, you should read: X X> make.txt - how to compile and link Ghostscript. (You should also read Xinstall.txt in this case.) X XIf you run into any questions, or if you are going to be using Ghostscript Xextensively, you should at least skim, and probably eventually read: X X> fonts.txt - information about the fonts distributed with XGhostscript, including how to add or replace fonts. X X> language.txt - A description of the Ghostscript language, and its Xdifferences from the documented PostScript language. X X> psfiles.txt - information about the .ps files distributed with XGhostscript (other than fonts). X XThere is also a FAQ (Frequently Asked Questions) file available on the XInternet. See "If you need help" below for the location. X XWhat should I read if I'm not a new user? X----------------------------------------- X XWhen you receive a new release of Ghostscript, you should start by reading: X X> README - this file. X X> current.txt - information about problems, and major changes and new Xfeatures in the current release. X XIf you have used a previous release of Ghostscript, you probably should also Xread any more recent sections of: X X> NEWS - a complete, detailed history of changes in the most recent XGhostscript releases. X XWhat if I'm a developer? X------------------------ X XIf you are going to be writing a new driver for Ghostscript, you Xshould read: X X> drivers.txt - the interface between Ghostscript and device drivers. X X> xfonts.txt - the interface between Ghostscript and platform-supplied Xfonts. (Read drivers.txt first.) X XIf you are considering distributing Ghostscript (either Aladdin or GNU Xversions) in conjunction with a commercial product, you should read the XPUBLIC license carefully, and you should also read: X X> commprod.txt - additional clarification of the circumstances under which XGhostscript can be distributed with a commercial product. X XIf you intend to use Ghostscript in the form of a DLL under OS/2 or XMicrosoft Windows, you should read: X X> dll.txt - documentation on Ghostscript as a DLL. X XIf you intend to use Ghostscript as part of another program and not Xas a DLL, rather than as a self-contained executable application, you Xshould start by reading either (if you will be using Ghostscript as a Xcallable PostScript language interpreter): X X> imain.h - the documented API for Ghostscript not as a DLL. X Xor (if you are going to use just the Ghostscript graphics library): X X> lib.txt - information about the structure of and APIs for the XGhostscript library. X XOther files X----------- X X> devarch.txt - notes on the architecture of device handling in XGhostscript 3.0. X X> ps2epsi.txt - documentation for the PostScript to EPSI conversion Xutility. X X> helpers.txt - a note of thanks to all the people who have helped with XGhostscript development. X X> hershey.txt - information about the Hershey fonts, which are the Xbasis of some of the Ghostscript fonts. X X> history*.txt - a history of changes in older Ghostscript releases. X X> humor.txt - a humorous comment on Ghostscript contributed by a user. X X> unix-lpr.txt - information about how to integrate Ghostscript with XUnix printer spooling. X X- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - X XPostScript is a trademark of Adobe Systems, Incorporated. SHAR_EOF $TOUCH -am 0828145796 README.ghostscript && chmod 0644 README.ghostscript || echo "restore of README.ghostscript failed" set `wc -c README.ghostscript`;Wc_c=$1 if test "$Wc_c" != "6993"; then echo original size 6993, current size $Wc_c fi # ============= README.ghostview ============== echo "x - extracting README.ghostview (Text)" sed 's/^X//' << 'SHAR_EOF' > README.ghostview && X X Ghostview -- An X11 user interface for ghostscript. X XGhostview is full function user interface for ghostscript 2.4. X XBrief list of features: X - Ghostview parses any known version of Adobe's Document Structuring X Conventions. X - Page size is automatically determined from the Document Structuring X Comments. The user is able to override the values from the comments. X - Window size is set to the bounding box for Encapsulated PostScript figures. X - Default page size is Letter and can be changed via Xresources or X application defaults file to A4 (or any other valid size) for our X European friends. X - Scrollbars appear when necessary. X - Page orientation is automatically determined from the Document Structuring X Comments. The user is able to override the values from the comments. X - Ability to view at 4 orientations: Portrait, Landscape, Upside-down, X and Seascape (for those who rotate landscape the other direction). X - Ability to preview in any supported visual. (Can preview in gray-scale X or color on a Color monitor.) X - Ability to mark pages for printing, or saving. (Good for people that X printed a 100 page document and lost page 59 due to a printer jam.) X - Can popup zoom windows at printer resolution X (1 display dot = 1 printer dot). X X The Ghostview distribution includes a Ghostview Widget that people X are encouraged to use in other programs. X X Ghostview-1.4 is available via anonymous ftp from: X prep.ai.mit.edu:/pub/gnu/ghostview-1.4.tar.Z X ftp.cs.wisc.edu:/pub/X/ghostview-1.4.tar.Z X X This program is free software; you can redistribute it and/or modify X it under the terms of the GNU General Public License as published by X the Free Software Foundation; either version 2 of the License, or X (at your option) any later version. X X This program is distributed in the hope that it will be useful, X but WITHOUT ANY WARRANTY; without even the implied warranty of X MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the X GNU General Public License for more details. X XBuilding ghostview: X X If you have xmkmf, type "xmkmf", and then "make". X If not, manually edit the Makefile. X XFeedback X X I welcome any feedback that you care to give. Of course, I am interested X in your success stories. I will also try to help you if you have problems. X However, I cannot make any promise of support. X X Please send all feedback to ghostview@cs.wisc.edu. This is a spare time X project and all the mail regarding ghostview must be directed to a X separate mail box otherwise your mail may very well get lost in the cracks. X XFrequently asked questions: X X 1. Why does half the functionality of ghostview seem to be missing? X I cannot skip around in the document. I cannot select pages to X print. There are no page numbers in the table of contents. X X The problem is that the document does not have the document X structuring comments. Without them, ghostview cannot tell where X pages start and end. Also, when reading from stdin there is no X capability to skip around. X X 2. Whenever I ask ghostview to display a page, a separate ghostscript X window pops up and disappears when ghostscript is done rendering X the page. How to I get ghostscript to write on the ghostview window? X X You must be running ghostscript 2.4 or later for ghostview to work X properly. You can pick up the current copy of ghostscript from X the same place you got ghostview. X X 3. When I start ghostview, the information window pops up with: X "Warning: Could not allocate backing pixmap in main window." X What does this mean? X X Ghostscript draws into a backing pixmap and copies from the X pixmap to the window. Some X servers have limited resources for X pixmaps. Creating the backing pixmap failed. Ghostview will then X request backing store on the window. If the backing store request X is not honored, obscured portions of the window will be lost. X X You might also request a smaller window by setting a smaller X magstep or setting a smaller resolution. X X 4. When I start ghostview, sometimes I get this error: X "Error: SmeBSB Object: Left Bitmap of entry "0" is not one bit deep.." X Other times it works. What is going wrong? X X The only time this problem occurs is when an OpenWindows X server X is the display. It is likely a server problem. I have placed a X work around in ghostview that turns off all use of bitmaps. The X -openwindows option enables this work around. However, with it X enabled the current magstep, orientation, and media cannot be X marked in the popup menus. X X 5. Sometimes ghostview produces an endless stream of this message: X "Warning: Select failed; error code 9". X X Users have reported that this occurs on machines with a SYSV X and BSD library. The problem went away when they linked with the X BSD library rather than the default SYSV library. X X This also occurs on some SPARCS running SunOS. This does not happen X for me and must be due to some differences in libraries or environment. X I have placed a SPARC executable (compiled on SunOS 4.1 with X11R5pl10 X libraries statically linked in) on ftp.cs.wisc.edu for people X in this situation. X X 6. When using ncdwm, sometimes the window shrinks to an extremely X small size. X X Either use the -ncdwm option to work around the problem, or apply X fix-10 to X11R5. X X 7. Ghostview pops up the information window with the message X "Exec of gs failed". It never displays anything in the main X viewport. What went wrong? X X Either ghostscript is not installed or it cannot be found in X your PATH. Please pick up the latest copy of ghostcript from X the same place you got ghostview and install it. X XAcknowledgements X X I really should put down the names of all the people who have given X me suggestions and encouragement. (But I don't want to hold up the X release any longer. :-) X X I do want to thank a few people. X X - Karl Berry, for getting me into this mess :-) by soliciting for X volunteers. X - L. Peter Deutsch, for making ghostscript the good interpreter that X it is and for working with me to include modifications in support of X ghostview. X - Erik M. van der Poel, for writing a good publicly available file X selection widget that I was able incorporate into ghostview. X - Terry Poot, for porting ghostview to VMS. X XNOTE: PLEASE send all ghostview related mail to ghostview@cs.wisc.edu. X X Tim Theisen Systems Programmer XInternet: tim@cs.wisc.edu Department of Computer Sciences X UUCP: uwvax!tim University of Wisconsin-Madison X Phone: (608)262-0438 1210 West Dayton Street X FAX: (608)262-9777 Madison, WI 53706 SHAR_EOF $TOUCH -am 0828143896 README.ghostview && chmod 0444 README.ghostview || echo "restore of README.ghostview failed" set `wc -c README.ghostview`;Wc_c=$1 if test "$Wc_c" != "6717"; then echo original size 6717, current size $Wc_c fi exit 0