<div dir="ltr"><br><br><div class="gmail_quote">2008/10/8 Tino Wildenhain <span dir="ltr">&lt;<a href="mailto:tino@wildenhain.de">tino@wildenhain.de</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">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;">
Perhaps is better if I explain you what I&#39;m trying to do<br>
<br>
Imagine a Plone site (I know there are a plone list but this is a generic question, sorry if not)<br>
<br>
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<br>
<br>
For example: plone_site_url/front-page?print renders the plone front page with the print.css sytle<br>
<br>
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)<br>
<br>
Did you know how can I get the html code of an url with get parameters?<br>
</blockquote>
<br></div>
just context[&#39;front-page&#39;](print=True) ?</blockquote><div><br>Perhaps but this puts print on options/args/print or options/print in the page_template scope, isn&#39;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 class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
or something? (Am I the only one which does not see value in a print<br>
button because there is CSS to make this happen without server<br>
interaction? )</blockquote><div><br>Yes, this work as you think but if you need the same view (the print view) in the server side you need to change portal_css&nbsp; <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Regards<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>