Discussion:
Ghostscript 9.15 (CLI)
(too old to reply)
A.D. Fundum
2015-03-30 07:08:56 UTC
Permalink
I've installed GS8.14 recently (v8, no typo), using a simplified
directory structure (no Unix' gs8.14-layer) and a WPS object based on
the INSTALL.HTM command-line. I've also installed GSview with modified
directories, FWIW.

I just entertained myself for a few hours by trying to upgrade GS to
9.15 (v9, no typo), including the use of its additional readme.os2
directories.

Assuming that I have to use the fonts-directory of 8.14, what's the
CLI command to display e.g. the ESCHER.PS file in the
example-directory? I've added the extra directories to 8.14's
GSPM.CMD, but then one of the errors is that os2pm isn't a device
anymore.

So what's the full, new command to execute the equivalent of
"GSOS2.EXE .\EXAMPLES\ESCHER.PS", resulting in that PS file being
displayed, without using an adjusted GSview at the moment?


--
ivan
2015-03-30 21:25:02 UTC
Permalink
Post by A.D. Fundum
I've installed GS8.14 recently (v8, no typo), using a simplified
directory structure (no Unix' gs8.14-layer) and a WPS object based on
the INSTALL.HTM command-line. I've also installed GSview with modified
directories, FWIW.
I just entertained myself for a few hours by trying to upgrade GS to
9.15 (v9, no typo), including the use of its additional readme.os2
directories.
Assuming that I have to use the fonts-directory of 8.14, what's the
CLI command to display e.g. the ESCHER.PS file in the
example-directory? I've added the extra directories to 8.14's
GSPM.CMD, but then one of the errors is that os2pm isn't a device
anymore.
So what's the full, new command to execute the equivalent of
"GSOS2.EXE .\EXAMPLES\ESCHER.PS", resulting in that PS file being
displayed, without using an adjusted GSview at the moment?
--
I am not even sure you can view anything with GS. As far as I know
its main use is a postscript interpreter.

To view something you need GSVIEW (available on hobbes as
gsv50os2.zip).

Here we have the following directory structure and everything works.

e:\tools---GS--- fonts
- gs9.15 -- bin
 - doc
 - examples
 - lib
 - resource
- gsview

GS was just unzipped into the tools\gs directory and gsview was
unzipped from the os2.zip in the gsv50os2.zip - there is an installer
in that zip file but we have not found the need to use it.

You do need to read Paul's readme.os2 to know how to setup gsview.
Other than that just make sure you list the directories correctly and
you should not have any problems (even one of our clients managed to
set it up himself from the above information).
Dave Yeo
2015-03-30 23:35:33 UTC
Permalink
Post by ivan
I am not even sure you can view anything with GS. As far as I know
its main use is a postscript interpreter.
You can using the gspmdrv.exe driver, no menus or such though. for
gs8.00 I use this cmd file
@f:\utils\gs\gs8.00\bin\gsos2.exe
-If:/utils/gs/gs8.00/lib;f:/utils/gs/gs8.00/fonts;n:/psfonts
-sDEVICE=os2pm -dBitsPerPixel=8 -sPAPERSIZE=a4 %1 %2 %3 %4 %5 %6 %7 %8
A.D. Fundum
2015-04-05 22:34:26 UTC
Permalink
Post by Dave Yeo
gs8.00 I use this cmd file
Oops, I won't try Dave's GSPM.CMD because it assumes the use of v8.xx
too. It won't work with v9.xx, because v9.xx doesn't known about the
"os2pm" device.

Maybe you have to use GSview now. And/or two installed versions of
Ghostscript. I don't know what happened to "os2pm".
Post by Dave Yeo
-dBitsPerPixel=8
FWIW, but without any meaningful GS experience: I'm using a documented
value of 24 (true colors) instead of INSTALL.HTM's suggested command
with 8 (256 colors).


--
A.D. Fundum
2015-04-05 22:20:54 UTC
Permalink
Post by ivan
I am not even sure you can view anything with GS
FWIW, I have two PM objects. GSview, and a GSPM.CMD file which is a
drop target. It's documented in 8.14's INSTALL.HTM file. It's not
(fully) documented anymore, including 9.15's README.OS2.
Post by ivan
Here we have the following directory structure
I'm not using e:\tools\GS\fonts and e:\tools\GS\gs9.15\bin, because I
have only one version of GS installed, GS isn't my prefered name, we
don't have Unix' links to point to a single version.

FWIW/2, using your structure and names, I have repackaged 8.14 to move
the fonts directory to e:\tools\GS\gs8.14\fonts, removed the unneeded
8.14 layer and renamed GS to Ghostscript.

This requires a change of a GSPM.CMD directory parameter, which
assumes e:\tools\GS\fonts. The 8.14 (not 9.15) GSPM.CMD file would
be:

@E:\TOOLS\GHOSTSCRIPT\BIN\GSOS2.EXE
-IE:/TOOLS/GHOSTSCRIPT/LIB;E:/TOOLS/GHOSTSCRIPT/FONTS;C:/PSFONTS
-sDEVICE=os2pm -dBitsPerPixel=24 -sPAPERSIZE=a4 %1 %2 %3 %4 %5 %6 %7
%8

I'm also using GSview (in a mix-cased e:\tools\GSview2). IIRC I told
the GSview installer that my GS directory is e:\tools, and I had to
change (advanced) e:\tools\fonts in e:\tools\Ghostscript\fonts.

So 8.14 works (drop target, GSview) and I can apply 9.15's README.OS2
to my simplified or OS/2'ified directory structure, but one of the
undocumented changes was that "os2pm" no longer is a recognized
device.

FYI: 8.14's GSPM.CMD (object name Ghostscript 8.14, with a matching
icon) can display both PDF and PS files. There is no GUI. Just a
frame. If you want to view a PDF file with two pages, then the
text-mode UI of GSOS2.EXE will ask you to press <Enter> after each
page and it will display a new frame per page. The use of GSview may
be recommended, but GSview and its added value isn't required. The
text-mode GSOS2.EXE can be used too, at least with 8.14.
Post by ivan
there is an installer in that zip file but we
have not found the need to use it.
Same here. The GSview installer accepted e:\tools as the GS directory,
so it doesn't (and shouldn't) check paths. Apparently it copies the
files and assumes the (adjustable) parameters.
Post by ivan
You do need to read Paul's readme.os2 to know how to
setup gsview.
This was about GSOS2.EXE. I added and/or adjusted the directories,
a.o. the fonts directory ( e:\tools\Ghostscript\fonts), e.g. the
device-parameter isn't documented.
Post by ivan
just make sure you list the directories correctly and
you should not have any problems
Indeed. So far GS doesn't assume a fixed directory structure, and it
(including the GSview GUI) uses parameters. Excellent.

I could have used ...\Ghostscript\gs9.15\..., but then the empty 9.15
directory has no use. Now e:\tools or e:\tools\Ghostscript is a
backup-layer. So is e:\tools\GSview2. The only unusual problem is that
the e:\tools\Ghostscript\fonts directory can be reused, so I
shouldn't execute DELTREE e:\tools\Ghostscript\* to install a new
version. I didn't know that the fonts would be reused, but I haven't
resimplified that.

FWIW/3, my Ghostscript directory looks like this:

Directory of E:\tools\Ghostscript

[.] [..] [bin] [doc] [examples] [fonts]
[lib] [Resource]
8 file(s) 0 bytes used

In Unix I may have used the original structure, but we don't have a
clear "Ghostscript" link or shortcut to point to the right, current
directories. Hence the (off-topic) attempts to get rid of unneeded,
possibly unclear directories.

I'll (adjust, due to the different directories, and) try Dave's CLI
GSOS2.EXE-command to create a new, working 9.15 GSPM.CMD. In general
the use of GSview v5.0 is recommended, but this was about a GSOS2.EXE
drop target, ignoring GSview and whatever parameters GSview would use.

The old GSPM.CMD I've included above won't work with 9.15 and the
suggested changes of 9.15's README.OS2. GSOS2.EXE will produce at
least one remaining error message, because it rejects "os2pm" as a
device. If I'm right, then (coming from 8.14) that change wasn't
documented nor obvious. The error messages of GSOS2.EXE aren't that
clear too.


--
Paul Smedley
2015-04-07 23:29:02 UTC
Permalink
Hi All,
Post by A.D. Fundum
So 8.14 works (drop target, GSview) and I can apply 9.15's README.OS2
to my simplified or OS/2'ified directory structure, but one of the
undocumented changes was that "os2pm" no longer is a recognized
device.
There was no intent to drop support for the os2pm device I'll see if I
can work out how to reinstate it in 9.16

Cheers,

Paul
Paul Smedley
2015-04-08 01:20:44 UTC
Permalink
Hi Again,
Post by Paul Smedley
Hi All,
Post by A.D. Fundum
So 8.14 works (drop target, GSview) and I can apply 9.15's README.OS2
to my simplified or OS/2'ified directory structure, but one of the
undocumented changes was that "os2pm" no longer is a recognized
device.
There was no intent to drop support for the os2pm device I'll see if I
can work out how to reinstate it in 9.16
It appears the os2pm device was removed in 2008 - from Details8.htm
(from the ghostscript source)
2008-08-30T13:31:29.235544Z Russell Lang</strong></p>
Fix the OS/2 build after the source reorganization.
Remove the os2pm device and the old DLL interface for OS/2,
to avoid direct links from the graphics library into the
PS interpreter.
A.D. Fundum
2015-04-20 14:49:51 UTC
Permalink
Post by Paul Smedley
Remove the os2pm device and the old DLL interface for OS/2,
Excellent; thanks. I'll wait for 9.16, perhaps with it being added
back (or not). Otherwise GSview appears to be an implied requirement.

As such I don't think that the device is a must-have, but it's more
clear to be able to use an unclear product as a stand-alone pruduct.
It being unclear is actually one of the reasons why it took so long to
give v8.14 (not a typo) a serious try, as one of over 1500 unclear
packages not yet reviewed here. Paul's upgrades are a lot of years
newer, so typical users can use his v9.15 and GSview.


--

A.D. Fundum
2015-04-06 01:28:43 UTC
Permalink
Post by ivan
I am not even sure you can view anything with GS.
FWIW, viewing a PNG file with GSOS2.EXE (and GSPMDRV.EXE?), the 8.xx
command-line and the lost "os2pm"-device looks like this:

Loading Image...

Of course it isn't pretty. Or as pretty as a CLI. Nevertheless I
wanted to reproduce something like this with 9.xx. Hence the original
question, but perhaps GSview now is always an implied requirement
indeed.


--
Loading...