Question : Problem: How to Open Postscript files

Hellow, Experts.

I need to open, edit and print some PS files at http://uttou2.to.utwente.nl/comped/fr2/fr2appdx.htm (the first tree documents and the last one of the list; also all the files under appendice)
I downloaded the Ghostview 2.7 and ghostscript 5.10
When I try to open the files above I get the following message .

Loaded Ghostscript DLL C:\GSTOOLS\gs5.10\gsdll32.dll
Aladdin Ghostscript 5.10 (1997-11-23)
Copyright (C) 1997 Aladdin Enterprises, Menlo Park, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/WINDOWS/TEMP/fr2app01.ps without pages
Unrecoverable error: undefined in PSp

--- Begin offending input ---

--- End offending input ---
file offset = 1024
gsdll_execute_cont returns -21

I couldn´t open it neither with Corel Draw nor Photoshop.
When I send it directly to a HP4 Postscript printer it prints the text mixed with postscript codes.

I can edit other PS files without problem with Ghost View.
Are all these files corrupted? How can I open these files.
Are they other kind of PS files?

Thank´s a lot for your help
     

Answer : Problem: How to Open Postscript files

Here we go:

Alvaro,

in the meantime (until you hear from the site admin), here is something to chew on :-)

1.) Open the file you want to print in a text-editor (wordpad, emacs, etc.)
2.) After the "%PS-Adobe-2.0" line add the PostScript code I attached at the end of this message
3.) Save the PostScript-file and send it to the printer
4.) Voila

The embedded EPS-files don't print correctly, because I didn't have enough time to figure out what IX and IS exactly mean (anybody what to try?).

At least you get an idea ....

Hope this helps
   Tobias


% This header has to be preprended to all the PostScript-files
/factor 17.5 def
currentpagedevice /PageSize get dup
0 get /Width exch def
1 get /Height exch def
1 factor div 1 factor div scale
/PSp { }  def
/SFL { pop } def
/F   { exch pop /Times-Roman exch factor mul dup /cSize exch def selectfont } def
/P   { Height factor mul exch sub moveto  } def
/S   { show } def
/J   { 0 rmoveto } def
/E   { /Times-Roman cSize selectfont } def
/B   { /Times-Bold cSize selectfont} def
/I   { /Times-Italic cSize selectfont} def
/PE  { showpage 1 factor div 1 factor div scale } def
/PSe { } def
/II1 { /epsbegin save def } def
/II2 { /epsdict 1 dict def epsdict begin } def
/IX { pop pop } def
/IS { pop pop translate } def
/IT { epsbegin restore} def
% end of header

 
 
 
   
 

Random Solutions  
 
programming4us programming4us