[reportlab-users] problem converting pdf to ps]

Hassan Chahrour hassan at reportlab.com
Thu Feb 15 06:58:13 EST 2007


Hi

I just took your attached document and ran it through AFPL Ghostscript
8.53 on an XP machine. It converted to PS fine, no errors.
The problem does not appear to be in the Pdf file, it could be a line
ending problem or something of that sort.

Hope this helps a little.

>

>

> -------- Original Message --------

> 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?

>

>

> ------------------------------------------------------------------------

>

> _______________________________________________

> reportlab-users mailing list

> reportlab-users at reportlab.com

> http://two.pairlist.net/mailman/listinfo/reportlab-users

>




More information about the reportlab-users mailing list