Hi,

Ok, see http://pajhome.org.uk/pdf.txt

You need to "from pdf import render_pdf" then in your controller:

@render_pdf
@expose('blah')
def myfunc()...

You may also want to set:

cherrypy.response.headers['Content-Disposition'] = 'attachment; filename="
myfile.pdf"'

Paul


On 8/30/07, AZMel <[EMAIL PROTECTED]> wrote:
>
>
> Thanks Paul, I will be looking forward to seeing that.
>
> Mel
>
> On Aug 30, 9:44 am, Paul Johnston <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > >Has anyone been able to interface to HTMLDOC through TG?
> >
> > Yes, I've done that successfully. I developed a little wrapper that
> > provided a render_pdf decorator you could apply, before expose. It works
> > ok, although htmldoc only supports HTML 4 and no unicode. I'll post this
> > code when I get a chance; remind me if I haven't in the next few days.
> >
> > Has anyone used other tools to generate PDFs? I figure there are options
> > that allow unicode and such.
> >
> > Paul
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
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