Chapter PrintAuthor: F. Hoffmann, 2003/07/24 NOTE: this document is obsolete and describes an approach that was relevant before the introduction of ZMS filters.
In addition to the normal print version of single pages with the common function: <!-- BO index_print.pdf -->
<dtml-call "REQUEST.set('l',[])">
<dtml-call "l.append('<html>\n')">
<dtml-call "l.append('<body>\n')">
<dtml-call "REQUEST.set('obs',[getSelf()])">
<dtml-call "obs.extend(getTreeNodes(REQUEST))">
<dtml-let level="obs[0].getLevel()">
<dtml-in obs>
<dtml-if "isPage()">
<dtml-call "l.append('<h%i>'%(getLevel()-level+1)+
getTitle(REQUEST)+'</h%i>'%(getLevel()-level+1)+'\n')">
<dtml-elif "isPageElement()">
<dtml-call "l.append(getBodyContent(REQUEST)+'\n')">
</dtml-if>
</dtml-in>
</dtml-let>
<dtml-call "l.append('</body>\n')">
<dtml-call "l.append('</html>\n')">
<dtml-call "RESPONSE.setHeader('Content-Type','application/pdf')">
<dtml-return "html2pdf(''.join(l))">
<!-- EO index_print.pdf -->
|
Home |
Sitemap |
Printversion |
Top |
Imprint |
pressinfo
© 2001-2008 Hoffmann+Liebenberg GmbH, SNTL Publishing GmbH & Co KG
|
ZMS is a partner project of medvalue.net