[reportlab-users] pdf makes im/gs cranky

Carl Karsten carl at personnelware.com
Fri Jan 11 13:40:46 EST 2008


I am trying to figure out why something is crashing. It seems to be only on
pdf's created with reportlab.

from reportlab.pdfgen import canvas
p = canvas.Canvas('rlhw.pdf')
p.drawString(100, 100, "Hello world.")
p.showPage()
p.save()

[ckarsten at rampart ckarsten]$ convert rlhw.pdf x.png
Unrecoverable error: rangecheck in .putdeviceprops
convert: Postscript delegate failed (rlhw.pdf).

I don't get the error when I run it on my local box.

convert calls ghostscript. anyone know a gs command I can run that might give
info? (like see if gs can ... parse the pdf?)

Carl K


More information about the reportlab-users mailing list