|
|
GHOSTSCRIPT FOR DOS PostScript/PDF under true DOS! |
|
Return to main page Version française
This system is based on the usage of a specially modified version of GPL_GHOSTSCRIPT (version 8.57) made compatible with environment "HX DOS-Extender" (see www.japheth.de) and thus being able to be used as well under Windows XP as directly under DOS (real mode).
To remain or discover all the GhostScript'possibilities you can look at this good online manual: http://ghostscript.com/doc/current/Use.htm
To use the special version you must first install the normal version of GhostScript 8.57 the installation must be done in C:\GS (or D:\GS) and not in C:\Program files\gs to always deal with simple file names (format 8.3) easier to specify under DOS.
You can obtain it here, installation is straigthforward: http://downloads.sourceforge.net/ghostscript/gs857w32.exe
Ensure correct operation of the normal version under Win XP.
You must then replace the files 'gswin32c.exe' and 'gsdll32.dll' by their 'special' version contained in: http://www.milec.com/download/GSD857B.ZIP
Again ensure correct operation of this 'special' version under Win XP.
Under Windows you may also install GSView a complementary software allowing direct viewing of POSTSCRIPT files (no need to convert to PDF).
Usage under DOS (real mode)
To allow operation under DOS you must have on your PC the environment 'HX-RunTime' installed and activated.
See here: http://www.japheth.de and also the Wiki
You must also have set up the handling of the 'long' file names under DOS. All is in DOSLFN.ZIP.
To check the correct operation of the 'special' version under DOS use file XGSD.BAT below (to be placed in C:\GS\GS8.57):
Set XGSDIR= C:\GS Set GS_LIB= Set GS_FONTPATH= Set GS_OPTIONS=-I%XGSDIR%\GS8.57\lib;%XGSDIR%\font;%XGSDIR%\GS8.57\Resource -q IF "%1" == "" GOTO DEFAULT SET FN=%1 GOTO SUITE :DEFAULT rem SET FN=%XGSDIR%\GS8.57\EXAMPLES\snowflak SET FN=LISTING echo /Times-Roman findfont 32 scalefont setfont 1.0.1.0.0.0 setrgbcolor >%FN%.PS echo 100.350 moveto (Hello world!)show 1.5 setlinewidth 500.600 lineto stroke showpage >>%FN%.PS :SUITE rem 1) Simple Screen image dpmild32 -g bin\gswin32c %FN%.PS -c quit rem 2) Conversion of a POSTSCRIPT file to a file in PDF format bin\gswin32c -sDEVICE#pdfwrite -sOUTPUTFILE#%FN%.PDF %FN%.PS -c quit > gs.log rem 3) Print a POSTSCRIPT file (lowest quality, black and white) bin\gswin32c -sDEVICE=deskjet -dBitsPerPixel=1 %FN%.PS -c quit rem 4) Conversion of a PDF file to a file in PCX format bin\gswin32c -sDEVICE=pcx16 -sOUTPUTFILE=%FN%.pcx %FN%.pdf -c quit rem 5) Conversion of a POSTSCRIPT file to a file in BMP format bin\gswin32c -sDEVICE=bmp256 -sOUTPUTFILE=%FN%.bmp %FN%.PS -c quit rem 6) Visualisation of a PDF file dpmild32 -g bin\gswin32c %FN%.PDF -c quit rem 7) Direct printing of a PDF file (color 16 bits) bin\gswin32c -sDEVICE=cdeskjet -dBitsPerPixel=16 -dDepletion=1 -dShingling=2 %FN%.PDF -c quit :FIN SET FN= TYPE GS.LOG
You can join to us directly to the 02 35 61 31 80 or by email on info@milec.com for assistance
NOTE: The modifications made to the original GhostScript source files are available on request