<div dir="ltr">I'm agree with you, Tino. Plone has a lot of ugly features (as KSS, for instance)<br><br>Perhaps someone has a better solution for this issue<br><br>I only want to generate a PDF with the print view of a plone point<br>
<br>Plone2PDF will be ok but only works with Plone 2.5 or less<br><br><div class="gmail_quote">2008/10/8 Tino Wildenhain <span dir="ltr"><<a href="mailto:tino@wildenhain.de">tino@wildenhain.de</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Garito wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
2008/10/8 Tino Wildenhain <<a href="mailto:tino@wildenhain.de" target="_blank">tino@wildenhain.de</a> <mailto:<a href="mailto:tino@wildenhain.de" target="_blank">tino@wildenhain.de</a>>><div class="Ih2E3d"><br>
<br>
Garito wrote:<br>
<br>
Perhaps is better if I explain you what I'm trying to do<br>
<br>
Imagine a Plone site (I know there are a plone list but this is<br>
a generic question, sorry if not)<br>
<br>
I configure it in the way if you put a parameter ?print the<br>
plone point renders as when you push the print button at the<br>
bottom of the point<br>
<br>
For example: plone_site_url/front-page?print renders the plone<br>
front page with the print.css sytle<br>
<br>
Now I want to get the rendered code of this point as string to<br>
pass it to PDFNode.renderAsPdf (it expect a string with the HTML<br>
and the name of the generated pdf)<br>
<br>
Did you know how can I get the html code of an url with get<br>
parameters?<br>
<br>
<br>
just context['front-page'](print=True) ?<br>
<br>
<br>
Perhaps but this puts print on options/args/print or options/print in the page_template scope, isn't it?<br>
<br>
In my way to solve this I use request/form/print because plone_css use tal expressions and request is passed to it<br>
</div></blockquote>
<br>
This would be very ugly. However in this case just set context.REQUEST<br>
or context.REQUEST.form accordingly<br>
<br>
HTH<br><font color="#888888">
Tino<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Mis Cosas<br><a href="http://blogs.sistes.net/Garito">http://blogs.sistes.net/Garito</a><br>Zope Smart Manager<br><a href="http://blogs.sistes.net/Garito/670">http://blogs.sistes.net/Garito/670</a><br>
</div>