thanks very much.i just tried it out and it works.you dont know how
much you've saved my life!!!.heheh.thanks once again :-).really
appreciate it

On Jan 17, 5:17 am, Christoph Zwerschke <[email protected]> wrote:
> 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