Operating System - HP-UX
1824174 Members
2357 Online
109669 Solutions
New Discussion

Ghostscript 7.07 ioerror in --.outputpage-- HP-UX 11i ??

 
Scot Ferguson
Occasional Contributor

Ghostscript 7.07 ioerror in --.outputpage-- HP-UX 11i ??

Hello,

I've modified the postscript model script to dump a pdf file via GS.
However, when I send a postscript file to the new pdf print queue, GS
dies with the error "GNU Ghostscript 7.07: Unrecoverable error, exit
code 1". lp does output a partial pdf file, but 3/4 of the way into
the file there is the following GS dump.
---------------------------------------------------------------------------------
...
endobj
Error: /ioerror in --.outputpage--
Operand stack:
1 true
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-
- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- fa
lse 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop
--nostri
ngval-- 1 3 %oparray_pop 1 3 %oparray_pop .runexec2
--nostringva
l-- --nostringval-- --nostringval-- 2 %stopped_push
--nostringval--
0 4 %oparray_pop --nostringval-- --nostringval--
--nostringval-- --n
ostringval--
Dictionary stack:
--dict:1059/1123(ro)(G)-- --dict:0/20(G)-- --dict:74/200(L)--
--dict:45
/100(L)--
Current allocation mode is local
Last OS error: 9
Current file position is 78560
5 0 obj
</Rotate 0/Parent 3 0 R
/Resources</ExtGState 8 0 R
...
---------------------------------------------------------------------------------------

I'm using the GS depot from the the Software Porting And Archive
Centre for HP-UX at Utah (http://hpux.cs.utah.edu/). And ps2pdf (and GS) work
great from the command line when I 'cat' the Postscript file I'm
trying via lp.

I suspect it has something to do with running the the command under
uid "lp", but I've come up short in everything I've tried.

In researching this error there is talk of this showing up when GS
tries to write to a full file system. But that doesn't seem like my
problem because I've got plenty of space.

The gut's of my model script are below..
for file in $files
do
ftype=`/usr/bin/file $file | cut -d: -f2`
echo $ftype | grep postscript > /dev/null
ft=$?
if [ $ft = 0 -a -z "$ascii" ] # file is verified as PostScript
then
/usr/local/bin/gs -sDEVICE=pdfwrite -q -dNOPAUSE -dBATCH
-dSAFER \
-sOutputFile=- "$file"
else
# perform ASCII-to-PostScript conversion with pslp
pslp | /usr/local/bin/gs -sDEVICE=pdfwrite -q -dNOPAUSE
-dBATCH \
-dSAFER -sOutputFile=- -
fi
done
i=`expr $i + 1`
done


Any help on the matter would be greatly appreciated.

Regards,
Scot