Comprehensive TeX Archive Network

Direc­tory tex-archive/support/hypertex/tanmoy/ghostview-1.5-hacked

/* This file is part of the hacked version of the ghostview package */
/* which is distributed under the terms of the gnu license. The */
/* modification referred to above is by Tanmoy Bhattacharya, */
/* <tanmoy@qcd.lanl.gov> on Nov 17, 1994. Neither the modification, */
/* nor the original program provides any warranty. */

/* Last Modification: Dec 1 1994, 10:47 */

    Ghostview -- An X11 user interface for ghostscript.

Ghostview is full function user interface for ghostscript 2.4 and
later. This distribution is modified to support the pdfmark operator.

Brief list of features:
  - Ghostview parses any known version of Adobe's Document Structuring
  - Page size is automatically determined from the Document Structuring
    Comments.  The user is able to override the values from the comments.
  - Window size is set to the bounding box for Encapsulated PostScript figures.
  - Default page size is Letter and can be changed via Xresources or
    application defaults file to A4 (or any other valid size) for our
    European friends.
  - Scrollbars appear when necessary.
  - Page orientation is automatically determined from the Document Structuring
    Comments.  The user is able to override the values from the comments.
  - Ability to view at 4 orientations: Portrait, Landscape, Upside-down,
    and Seascape (for those who rotate landscape the other direction).
  - Ability to restrict rendering to grayscale or monochrome.   (Requires
    ghostscript 2.6.1.)
  - Ability to mark pages for printing, or saving.  (Good for people that
    printed a 100 page document and lost page 59 due to a printer jam.)
  - Can popup zoom windows at printer resolution
    (1 display dot = 1 printer dot).
  - Handles pdfmark operator. (alpha release)

    The Ghostview distribution includes a Ghostview Widget that people
    are encouraged to use in other programs.

    Original (without pdfmark support) Ghostview-1.5 is available via
    anonymous ftp from:  
    Modified ghostview-1.5 (this release) available from

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

Building ghostview:

    Set the ghostscript inputs directory in Imakefile.
    If you have xmkmf, type "xmkmf", and then "make".
    If not, manually edit the Makefile.

The   following  is unchanged  from    what  came  with the   original
Ghostview. Please notice that the  pdfmark project has been spliced in
by   tanmoy@qcd.lanl.gov. Please  do  not  bother   Tim Theisen  about
problems relating to that.

--------------- original ---------------

    I welcome any feedback that you care to give.  Of course, I am interested
    in your success stories.  I will also try to help you if you have problems.
    However, I cannot make any promise of support.

    Please send all feedback to ghostview@cs.wisc.edu.<SEE MODS>  This is a spare time
    project and all the mail regarding ghostview must be directed to a
    separate mail box otherwise your mail may very well get lost in the cracks.

Frequently asked questions:

    1.  Why does half the functionality of ghostview seem to be missing?
	I cannot skip around in the document.  I cannot select pages to
	print.  There are no page numbers in the table of contents.

	The problem is that the document does not have the document
	structuring comments.  Without them, ghostview cannot tell where
	pages start and end.  Also, when reading from stdin there is no
	capability to skip around.

    2.  Whenever I ask ghostview to display a page, a separate ghostscript
	window pops up and disappears when ghostscript is done rendering
	the page.  How to I get ghostscript to write on the ghostview window?

	You must be running ghostscript 2.4 or later for ghostview to work
	properly.  You can pick up the current copy of ghostscript from
	the same place you got ghostview.

    3.  When I start ghostview, the information window pops up with:
	"Warning: Could not allocate backing pixmap in main window."
	What does this mean?

	Ghostscript draws into a backing pixmap and copies from the
	pixmap to the window.  Some X servers have limited resources for
	pixmaps.  Creating the backing pixmap failed.  Ghostview will then 
	request backing store on the window.  If the backing store request
	is not honored, obscured portions of the window will be lost.

	You might also request a smaller window by setting a smaller
	magstep or setting a smaller resolution.

    4.  When I start ghostview, sometimes I get this error:
	"Error: SmeBSB Object: Left Bitmap of entry  "0" is not one bit deep.."
	Other times it works.  What is going wrong?

	The only time this problem occurs is when an OpenWindows X server
	is the display.  It is likely a server problem.  I have placed a
	work around in ghostview that turns off all use of bitmaps.  The
	-openwindows option enables this work around.  However, with it
	enabled the current magstep, orientation, and media cannot be
	marked in the popup menus.

    5.  Sometimes ghostview produces an endless stream of this message:
	"Warning: Select failed; error code 9".

	Users have reported that this occurs on machines with a SYSV
	and BSD library.  The problem went away when they linked with the
	BSD library rather than the default SYSV library.

	This also occurs on some SPARCS running SunOS.  This does not happen
	for me and must be due to some differences in libraries or environment.
	I have placed a SPARC executable (compiled on SunOS 4.1 with X11R5pl10
	libraries statically linked in) on ftp.cs.wisc.edu for people
	in this situation.

    6.  When using ncdwm, sometimes the window shrinks to an extremely
	small size.

	Either use the -ncdwm option to work around the problem, or apply
	fix-10 to X11R5.

    7.  Ghostview pops up the information window with the message
	"Exec of gs failed".  It never displays anything in the main
	viewport.  What went wrong?

	Either ghostscript is not installed or it cannot be found in
	your PATH.  Please pick up the latest copy of ghostcript from
	the same place you got ghostview and install it.


    I really should put down the names of all the people who have given
    me suggestions and encouragement.  (But I don't want to hold up the
    release any longer. :-)

    I do want to thank a few people.

    - Karl Berry, for getting me into this mess :-) by soliciting for
    - L. Peter Deutsch, for making ghostscript the good interpreter that
      it is and for working with me to include modifications in support of
    - Erik M. van der Poel, for writing a good publicly available file
      selection widget that I was able incorporate into ghostview.
    - Terry Poot, for porting ghostview to VMS.

NOTE: PLEASE send all ghostview related mail to ghostview@cs.wisc.edu.<SEE MODS>


          Tim Theisen            Associate Researcher
Internet: ghostview@cs.wisc.edu  Department of Computer Sciences
    UUCP: uwvax!ghostview        University of Wisconsin-Madison
   Phone: (608)262-0438          1210 West Dayton Street
     FAX: (608)262-9777          Madison, WI   53706-1685

Send mail about pdfmark support to tanmoy@qcd.lanl.gov.


Name Size Date Notes
COPYING 18054 1991-07-22 01:00
Dir.c 3965 1993-07-24 01:00
Draw.c 16936 1993-07-24 01:00
Ghostview.ad 10610 1994-11-17 14:44
Ghostview.c 62728 1994-11-17 14:46
Ghostview.h 6262 1993-07-24 01:00
GhostviewP.h 3936 1993-07-24 01:00
HISTORY 18169 1994-11-17 15:22
Imake­file 2951 1994-11-17 15:21
Make­file 13765 1994-12-01 17:00
Path.c 17020 1993-07-24 01:00
README 7821 1994-12-01 16:52
README.VMS 10835 1992-10-01 00:00
README.pdf­mark 2767 1994-12-01 16:54
README.self­ile 2746 1992-10-01 00:00
SFin­ter­nal.h 3446 1992-04-15 01:00
SelFile.c 21474 1993-07-24 01:00
ac­tions.c 11561 1994-11-17 14:45
ad2c 678 1992-10-01 00:00
call­backs.c 21092 1994-11-17 14:44
com­ments.doc 1422 1991-07-20 01:00
de­scrip.mms 2472 1992-10-01 00:00
di­alogs.c 6374 1993-07-24 01:00
getenv.c 2023 1991-07-23 01:00
ghostview.man 38286 1993-07-24 01:00
ghostview.ps 91646 1993-07-25 01:00
gs.in­ter­face 3806 1993-07-24 01:00
gv.h 8838 1994-11-17 14:44
gvpdf.pro 3300 1994-11-25 15:44
main.c 38881 1994-11-17 14:44
misc.c 36777 1994-11-17 14:43
pdf.c 2536 1994-12-01 16:49
pdf.h 408 1994-11-17 14:42
ps.c 44779 1993-07-11 01:00
ps.h 3823 1992-10-01 00:00
run-ad2c 34 1992-10-01 00:00
setenv.c 3099 1992-09-25 01:00
stdc.h 1527 1991-07-23 01:00
str­casecmp.c 4167 1992-09-25 01:00
test.ps 234670 1994-11-10 06:33
vms_build.com 1683 1992-10-01 00:00
vms_types.h 9553 1992-10-01 00:00
xs­tat.h 506 1992-10-01 00:00
Guest Book Sitemap Contact Contact Author