Unix administration - Ghostscript

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > November 2007 > Ghostscript





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Ghostscript
capeme

2007-10-24, 7:22 pm

I am trying to use Ghostscript oin AIX to print pdf's and it seems I
have downloaded it and all dependencys fine - install went fine, when
I type any gs commnad except gs -h it just hangs..Here is what it says
before the hang:
GNU Ghostscript 5.50 (2000-2-13)
Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights
reserved.
This software comes with NO WARRANTY: see the file COPYING for details
Anyone have any thoughts?

Robert Melson

2007-10-25, 1:33 am

In article <1193261393.869801.118600@z24g2000prh.googlegroups.com>,
capeme <capeme@comcast.net> writes:
> I am trying to use Ghostscript oin AIX to print pdf's and it seems I
> have downloaded it and all dependencys fine - install went fine, when
> I type any gs commnad except gs -h it just hangs..Here is what it says
> before the hang:
> GNU Ghostscript 5.50 (2000-2-13)
> Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights
> reserved.
> This software comes with NO WARRANTY: see the file COPYING for details
> Anyone have any thoughts?
>


What, if anything, is in the system error logs? The message
you post above is nothing more than a standard copyright
claim/header and totally uninformative.

You say Ghostscript hangs. How did you invoke it? Did you
give it something to print or display on screen? When compiling
it, did you select the printers and/or display types you want it
to use?

In order for folks to help you, you have to give them more
information than you have.

Bob Melson

--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer

Robert Melson

2007-10-25, 1:33 am

In article <13hvpq0kdgj4m89@corp.supernews.com>,
melsonr@aragorn.rgmhome.net (Robert Melson) writes:
> In article <1193261393.869801.118600@z24g2000prh.googlegroups.com>,
> capeme <capeme@comcast.net> writes:
>
> What, if anything, is in the system error logs? The message
> you post above is nothing more than a standard copyright
> claim/header and totally uninformative.
>
> You say Ghostscript hangs. How did you invoke it? Did you
> give it something to print or display on screen? When compiling
> it, did you select the printers and/or display types you want it
> to use?
>
> In order for folks to help you, you have to give them more
> information than you have.
>
> Bob Melson
>

While I think of it, have you typed "gs -h"? What does that
say?

RGM

--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer

Thorbjoern Ravn Andersen

2007-10-25, 7:32 am

capeme <capeme@comcast.net> writes:

> I type any gs commnad except gs -h it just hangs..Here is what it says
> before the hang:


It is most likely waiting for you to type Postscript commands.

Have you tried invoking it with an example file - i.e. "gs golfer.ps"
(where you need to find it first).
--
Thorbjørn Ravn Andersen
capeme

2007-11-12, 7:25 pm

On Oct 24, 7:53 pm, mels...@aragorn.rgmhome.net (Robert Melson) wrote:
> In article <13hvpq0kdgj4...@corp.supernews.com>,
> mels...@aragorn.rgmhome.net (Robert Melson) writes:
>
>
>
>
>
>
>
>
> While I think of it, have you typed "gs -h"? What does that
> say?
>
> RGM
>
> --
> Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
> -----
> "People unfit for freedom---who cannot do much with it---are
> hungry for power." ---Eric Hoffer- Hide quoted text -
>
> - Show quoted text -


This is what comes up when I type gs -h:


Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights
reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
-dNOPAUSE no pause after page | -q `quiet', fewer
messages
-g<width>x<height> page size in pixels | -r<res> pixels/inch
resolution
-sDEVICE=<devname> select device | -dBATCH exit after last
file
-sOutputFile=<file> select output file: - for stdout, |command for
pipe,
embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF
Available devices:
x11 x11alpha x11cmyk x11gray2 x11gray4 x11mono deskjet djet500
laserjet
ljetplus ljet2p ljet3 ljet4 cdeskjet cdjcolor cdjmono cdj550 pj
pjxl
pjxl300 uniprint bj10e bj200 bjc600 bjc800 faxg3 faxg32d faxg4
pcxmono
pcxgray pcx16 pcx256 pcx24b pcxcmyk pbm pbmraw pgm pgmraw pgnm
pgnmraw
pnm pnmraw ppm ppmraw pkm pkmraw tiffcrle tiffg3 tiffg32d tiffg4
tifflzw
tiffpack tiff12nc tiff24nc psmono psgray psrgb bit bitrgb bitcmyk
pngmono
pnggray png16 png256 png16m jpeg jpeggray pdfwrite bbox pswrite
epswrite
pxlmono pxlcolor nullpage
Search path:
. : /opt/freeware/share/ghostscript/5.50 :
/opt/freeware/share/ghostscript/fonts
For more information, see /opt/freeware/share/ghostscript/5.50/doc/
Use.htm.
Report bugs to ghost@aladdin.com, using the form in Bug-form.htm.



Do I need an Xclient to use this? You know all I am trying to do is
come up with a simple command line method to print .pdf's in AIX.
Nothing more...Wow.

Robert Melson

2007-11-13, 1:27 pm

In article <1194911444.057828.27690@o3g2000hsb.googlegroups.com>,
capeme <capeme@comcast.net> writes:
> On Oct 24, 7:53 pm, mels...@aragorn.rgmhome.net (Robert Melson) wrote:
<snip>[vbcol=seagreen]
<snip>>[vbcol=seagreen]
> This is what comes up when I type gs -h:
>
>
> Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights
> reserved.
> Usage: gs [switches] [file1.ps file2.ps ...]
> Most frequently used switches: (you can use # in place of =)
> -dNOPAUSE no pause after page | -q `quiet', fewer
> messages
> -g<width>x<height> page size in pixels | -r<res> pixels/inch
> resolution
> -sDEVICE=<devname> select device | -dBATCH exit after last
> file
> -sOutputFile=<file> select output file: - for stdout, |command for
> pipe,
> embed %d or %ld for page #
> Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PDF
> Available devices:
> x11 x11alpha x11cmyk x11gray2 x11gray4 x11mono deskjet djet500
> laserjet
> ljetplus ljet2p ljet3 ljet4 cdeskjet cdjcolor cdjmono cdj550 pj
> pjxl
> pjxl300 uniprint bj10e bj200 bjc600 bjc800 faxg3 faxg32d faxg4
> pcxmono
> pcxgray pcx16 pcx256 pcx24b pcxcmyk pbm pbmraw pgm pgmraw pgnm
> pgnmraw
> pnm pnmraw ppm ppmraw pkm pkmraw tiffcrle tiffg3 tiffg32d tiffg4
> tifflzw
> tiffpack tiff12nc tiff24nc psmono psgray psrgb bit bitrgb bitcmyk
> pngmono
> pnggray png16 png256 png16m jpeg jpeggray pdfwrite bbox pswrite
> epswrite
> pxlmono pxlcolor nullpage
> Search path:
> . : /opt/freeware/share/ghostscript/5.50 :
> /opt/freeware/share/ghostscript/fonts
> For more information, see /opt/freeware/share/ghostscript/5.50/doc/
> Use.htm.
> Report bugs to ghost@aladdin.com, using the form in Bug-form.htm.
>
>
>
> Do I need an Xclient to use this? You know all I am trying to do is
> come up with a simple command line method to print .pdf's in AIX.
> Nothing more...Wow.


No, you don't need an Xclient unless you want to see the
gs output on-screen.

Do you have the manpage for gs/ghostscript installed? From that
document, ghostscript invoked as gs file.ps will attempt to print
to the first device shown in the devices list, in your case the
X11 "device". I'm assuming the actual printers shown in the list
are those in your environment (deskjet, djet500 .., cdj550). Are
the system queues for these printers setup? Do they print
normally (e.g., ls -l | lp -Pdeskjet) for plaintext printjobs? If
the queues DON'T exist for the devices listed, then you or your
admin will have to set'em up before you can continue.

If the printers ARE installed, try printing a test page with the
following: gs -s<printer> filename -sOutputFile=%pipe%lpr, where
printer is one of the devices above, filename is the name of the
file you wish to print and the rest of the line is self-
explanatory. Switch lp for lpr (or vice versa) as your system
requires. I don't remember which idiom AIX uses.

Meantime, there is the gs manpage you should read, plus
other documentation installed when you installed the package.
I'd suggest you read and understand all that before continuing.

Bob Melson


--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer

capeme

2007-11-15, 3:01 pm

On Nov 13, 12:56 pm, mels...@aragorn.rgmhome.net (Robert Melson)
wrote:
> In article <1194911444.057828.27...@o3g2000hsb.googlegroups.com>,
> capeme <cap...@comcast.net> writes:
>
>
>
>
>
>
> <snip>
>
> <snip>>
>
>
>
> No, you don't need anXclientunless you want to see the
> gs output on-screen.
>
> Do you have the manpage for gs/ghostscript installed? From that
> document, ghostscript invoked as gs file.ps will attempt to print
> to the first device shown in the devices list, in your case the
> X11 "device". I'm assuming the actual printers shown in the list
> are those in your environment (deskjet, djet500 .., cdj550). Are
> the system queues for these printers setup? Do they print
> normally (e.g., ls -l | lp -Pdeskjet) for plaintext printjobs? If
> the queues DON'T exist for the devices listed, then you or your
> admin will have to set'em up before you can continue.
>
> If the printers ARE installed, try printing a test page with the
> following: gs -s<printer> filename -sOutputFile=%pipe%lpr, where
> printer is one of the devices above, filename is the name of the
> file you wish to print and the rest of the line is self-
> explanatory. Switch lp for lpr (or vice versa) as your system
> requires. I don't remember which idiom AIX uses.
>
> Meantime, there is the gs manpage you should read, plus
> other documentation installed when you installed the package.
> I'd suggest you read and understand all that before continuing.
>
> Bob Melson
>
> --
> Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
> -----
> "People unfit for freedom---who cannot do much with it---are
> hungry for power." ---Eric Hoffer- Hide quoted text -
>
> - Show quoted text -


Can I just do the conversion in the working directory where the pdf is
and then I can manually sned it to the printer???I can;t seem to even
get it to do the conversion. It just sits and hangs??
Robert Melson

2007-11-16, 3:00 am

In article <56ecf498-2054-47f2-8998-7a12c0f5082a@c30g2000hsa.googlegroups.com>,
capeme <capeme@comcast.net> writes:
> On Nov 13, 12:56 pm, mels...@aragorn.rgmhome.net (Robert Melson)
> wrote:
<snip>[vbcol=seagreen]
> Can I just do the conversion in the working directory where the pdf is
> and then I can manually sned it to the printer???I can;t seem to even
> get it to do the conversion. It just sits and hangs??


What conversion? Perhaps I don't understand what you're asking
here. Ghostscript is an interpreter for postscript and pdf files and,
when properly invoked, converts the named input file into an
appropriate output stream for the designated printer. If that's
the conversion you're speaking of, then you might not have designated
the right printer or queue. If you have something else in mind,
then I have to say I haven't the foggiest.

Try this. Somewhere in the directory tree for ghostscript is an
examples directory, which will contain a file called tiger.eps (or,
maybe, tiger.ps) Go to that directory and try printing that file.
following the instructions on the ghostscript manpage (type
"man gs" to see it). Make sure the device you select and the
print queue are compatible. For example, if you're printing to
a LaserJet 4 and its printqueue is laser4, you'd type something
like this:

gs -s=ljet4 tiger.eps -sOutputFile=%pipe%lpr -Plaser4

(I don't recall what AIX calls its print spooler - could be lp,
rather that lpr, in which case you'd substitute lp -d laser4
for the lpr -Plaser4, above.)

If things are working right, you _should_ see a snarling tiger's
head as your printout. Remember, the gs device MUST match the
named printqueue's printer, otherwise you'll get reams of garbage.

Meantime, I really do suggest you read the documentation that
came with your gs installation - it's all on your system - and
understand what you're doing. If you're not the sysadmin, ask
him/her for help. If you _are_ the sysadmin, then you need to
read the manpage and the documentation and become familiar with
the application.

Bob Melson


--
Robert G. Melson | Rio Grande MicroSolutions | El Paso, Texas
-----
"People unfit for freedom---who cannot do much with it---are
hungry for power." ---Eric Hoffer

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com