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


Groups > comp.lang.postscript > #2257 > unrolled thread

Ghostscript does not create OutputFile

Started byMartin Leese <please@see.Web.for.e-mail.INVALID>
First post2015-05-11 21:03 -0600
Last post2015-05-12 08:38 -0600
Articles 3 — 2 participants

Back to article view | Back to comp.lang.postscript


Contents

  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

#2257 — Ghostscript does not create OutputFile

FromMartin Leese <please@see.Web.for.e-mail.INVALID>
Date2015-05-11 21:03 -0600
SubjectGhostscript does not create OutputFile
Message-ID<mirqge$a6f$1@dont-email.me>
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/

[toc] | [next] | [standalone]


#2258

FromDan Coby <adcoby@earthlink.net>
Date2015-05-11 20:17 -0700
Message-ID<a4OdnW-CP-9R7czInZ2dnUU7-cOdnZ2d@earthlink.com>
In reply to#2257
On 5/11/2015 8:03 PM, Martin Leese wrote:
> 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
>

Add a showpage at the end of the file.

Dan

[toc] | [prev] | [next] | [standalone]


#2259

FromMartin Leese <please@see.Web.for.e-mail.INVALID>
Date2015-05-12 08:38 -0600
Message-ID<mit366$jj0$1@dont-email.me>
In reply to#2258
Dan Coby wrote:
> 
> Add a showpage at the end of the file.

Perfect.

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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web