Subject: printing PDF files from ghostview
To: None <netbsd-help@netbsd.org>
From: Brook Milligan <brook@biology.nmsu.edu>
List: netbsd-help
Date: 03/07/2001 09:53:29
Whenever I try to print a PDF file from ghostview (pkgsrc/print/gv) it
fails.  It appears that the conversion from PDF to postscript prior to
submiting the print job either doesn't happen or the program looses
track of the appropriate temporary file (though I never see an
appropriate temporary file created).

- Does anyone have success printing PDF files this way?

- Does anyone else see this same problem?

- How are your GV X resources defined?  I think the relevant one (from
  /usr/X11R6/lib/X11/app-defaults/GV) is

     GV.gsCmdConvPDF:	gs -dNODISPLAY -dQUIET  -dNOPAUSE -sPSFile=%s %s -c quit

  because this command is used in the conversion during the printing
  process.

- Does anyone understand the use of -dNODISPLAY and -sPSFile here?
  The latter is not documented for ghostscript and the former causes
  the image to be thrown out.  This suggests to me that there should
  be no image to pass on to the printing system.  What am I missing
  here?

Any help much appreciated.

Cheers,
Brook