[reportlab-users] problem with pdf2ps

Jade Meskill reportlab-users@reportlab.com
Wed, 26 Nov 2003 16:46:19 -0700

I am having trouble with some of my ReportLab generated PDFs.  When I 
convert them to postscript using pdf2ps i get the following error:

Error: /ioerror in --token--
Operand stack:
    --dict:6/6(L)--   2   --dict:82/82(ro)(G)--   --nostringval--
Execution stack:
    %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval-- 
   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   
1   3   %oparray_pop   --nostringval--   2   1   1   --nostringval--   
%for_pos_int_continue   --nostringval--   --nostringval--   
--nostringval--   --nostringval--   %array_continue   --nostringval--   
false   1   %stopped_push   --nostringval--   %loop_continue   
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
    --dict:1051/1123(ro)(G)--   --dict:0/20(G)--   --dict:92/200(L)--   
--dict:92/200(L)--   --dict:97/127(ro)(G)--   --dict:229/230(ro)(G)--   
--dict:19/24(L)--   --dict:4/6(L)--   --dict:22/31(L)--
Current allocation mode is local
GNU Ghostscript 7.05: Unrecoverable error, exit code 1

This is only happening in a few of my documents, and I can't seem to 
find a common thread between them.  If I open them up in Preview on Mac 
OS X or in Acrobat Reader I can print it just fine, but printing using 
lpr on linux causes invalid postscript to be sent to the printer.  Can 
someone give me a hint as to where I can look to see what is causing 
this error?