Am 13.01.2010 19:58 schrieb sam:
         p = canvas.Canvas("toby.pdf")
         p.drawString(100, 100, "Helloworld.")
         p.showPage()
         p.save()

Here, you're saving your document to the filesystem on the server as "toby.pdf", but you will not get the pdf data back.

Try the following instead:

  c = canvas.Canvas(None)
  c.drawString(100, 100, "Helloworld.")
  p = c.getpdfdata()

-- Christoph
-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.


Reply via email to