Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2257

Ghostscript does not create OutputFile

From Martin Leese <please@see.Web.for.e-mail.INVALID>
Newsgroups comp.lang.postscript
Subject Ghostscript does not create OutputFile
Date 2015-05-11 21:03 -0600
Organization A noiseless patient Spider
Message-ID <mirqge$a6f$1@dont-email.me> (permalink)

Show all headers | View raw


Hi,

I couldn't find a newsgroup for Ghostscript,
so am posting here.  I am trying to rasterize
a PostScript file, but no output file is
created.  I haven't used gs for several
decades, but I don't recall a problem doing
this in the past.  I also performed a Find of
the entire disk to check it if had been
created somewhere obscure.  Nothing, nowhere.

I am running Windows 95 (there are not many
of us left), and am using AFPL Ghostscript
8.53 (2005-10-20).  I am assuming that I am
doing something dumb, so the age of the
Ghostscript should not be a factor.

Here is the command line I am using:

C:\"Program Files"\gs\gs8.53\bin\gswin32c -sDEVICE=pnggray -dSAFER
-dBATCH -dNOPAUSE -g400x400 -r72 -dTextAlphaBits=4 -sOutputFile=ff.png ff.ps

Gs executes without error.  The output from
-h includes pnggray as an available output
device.  (I also tried pgm, but with the
same result.)  After some trouble, I did
manage to convert the PS to a PDF; this
looked fine.

Many thanks for any help you can give.

I don't believe this is the problem, but
below is my PS file:

%!
% PostScript code to create image emailrelaying_background.png.
%
% Random font scale between 5 pt and 55 pt.
% Random font rotation between -90 deg and +90 deg.
% 400 x 400 image with wrapping of Silver text.
%
/maxint 2147483647 def
/randscale {rand maxint div 50 mul 5 add dup matrix scale} def
/randrotate {rand maxint div 180 mul 90 sub matrix rotate} def
/randpos {rand maxint div 400 mul} def
192 255 div setgray  % Silver

40 {  % Main loop, lots of SPAM
     /Helvetica findfont randscale randrotate matrix concatmatrix
makefont setfont
     /xpos randpos def
     /ypos randpos def
     /xtemp xpos 400 sub def
     3 {  % Repeat in x
         /ytemp ypos 400 sub def
         3 {  % Repeat in y
             xtemp ytemp moveto (SPAM) show
             /ytemp ytemp 400 add def
         } repeat
         /xtemp xtemp 400 add def
     } repeat
} repeat
/Helvetica findfont 12 scalefont setfont
50 100 moveto (Bloody Vikings!) show

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

Back to comp.lang.postscript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Ghostscript does not create OutputFile Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-11 21:03 -0600
  Re: Ghostscript does not create OutputFile Dan Coby <adcoby@earthlink.net> - 2015-05-11 20:17 -0700
    Re: Ghostscript does not create OutputFile Martin Leese <please@see.Web.for.e-mail.INVALID> - 2015-05-12 08:38 -0600

csiph-web