I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for

Perhaps someone has a better solution for this issue

I only want to generate a PDF with the print view of a plone point

Plone2PDF will be ok but only works with Plone 2.5 or less

2008/10/8 Tino Wildenhain <[EMAIL PROTECTED]>

> Garito wrote:
>> 2008/10/8 Tino Wildenhain <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]
>> >>
>>    Garito wrote:
>>        Perhaps is better if I explain you what I'm trying to do
>>        Imagine a Plone site (I know there are a plone list but this is
>>        a generic question, sorry if not)
>>        I configure it in the way if you put a parameter ?print the
>>        plone point renders as when you push the print button at the
>>        bottom of the point
>>        For example: plone_site_url/front-page?print renders the plone
>>        front page with the print.css sytle
>>        Now I want to get the rendered code of this point as string to
>>        pass it to PDFNode.renderAsPdf (it expect a string with the HTML
>>        and the name of the generated pdf)
>>        Did you know how can I get the html code of an url with get
>>        parameters?
>>    just context['front-page'](print=True) ?
>> Perhaps but this puts print on options/args/print or options/print in the
>> page_template scope, isn't it?
>> In my way to solve this I use request/form/print because plone_css use tal
>> expressions and request is passed to it
> This would be very ugly. However in this case just set context.REQUEST
> or context.REQUEST.form accordingly
> Tino

Mis Cosas
Zope Smart Manager
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to