[reportlab-users] problem converting pdf to ps

pier carteri pier.carteri at gmail.com
Thu Feb 15 06:24:57 EST 2007


Hi to all,
I' ve an app that generates pdf from our ERP. The app is written in
Python and use ReportLab library. The generated pdf looks fine and can
be viewed (and printed) with AcrobatReader without problems.
Now I'm trying to send pdf directly to printer (on a unix
environment). For this purpouse I have to convert pdf to ps. Using
pdf2ps ghostscript refuses to create a ps file and gives me the
following error:

Error: /invalidrestore in --restore--
Operand stack:
--nostringval-- --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 1 3 %oparray_pop
--nostringval-- 2 1 2 --nostringval-- %for_pos_int_continue
1 46 %oparray_pop --nostringval-- 1 46 %oparray_pop
--nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1059/1123(ro)(G)-- --dict:0/20(G)-- --dict:73/200(L)--
--dict:73/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)--
--dict:19/24(L)-- --dict:4/6(L)-- --dict:22/31(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)-- --dict:9/13(L)-- --dict:1/1(ro)(G)--
--dict:9/13(L)-- --dict:1/1(ro)(G)-- --dict:9/13(L)--
--dict:1/1(ro)(G)--
Current allocation mode is local


I enclose also the pdf I' ve tryied to covert.

Any ideas?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmp029660082.pdf
Type: application/pdf
Size: 26049 bytes
Desc: not available
Url : http://two.pairlist.net/pipermail/reportlab-users/attachments/20070215/d264939c/attachment-0001.pdf


More information about the reportlab-users mailing list