You are here:   » Home » Documentation » Details » How-To » System Configuration » Home

PDF Printversion

The PDF printversion shall be available at the website for download.

Solution: For generating the PDF printversion <HTML>DOC must be installed at the server. Now a new DTML method with ID "printversion.pdf" in Zope is applied. This DTML method requires the Proxy role "Manager" to have the needed permissions for generating the printversion. ZMS generates the printversion with the function "manage_export". As parameter for the PDF format export_format=8 must be stated. Now a hyperlink with href="printversion.pdf" and target="_blank" is to be inserted at the website. To keep the performance load when generating the PDF limited it is useful to give a hint for the lokal Browser cache in the http-response.

<!-- BO printversion.pdf (DTML Method) -->

<dtml-call "RESPONSE.setHeader('Cache-Control'
          ,'public, max-age=3600')">
<dtml-call f_standard_html_request>
<dtml-return "manage_export(export_format=8
          ,lang=lang,manage_lang=lang
          ,REQUEST=REQUEST,RESPONSE=RESPONSE)">

<!-- EO printversion.pdf (DTML Method) -->

Comment: NOTE: This tip is valid until ZMS 1.3; for later ZMS versions the filter concept is used.

Print this Document   change language   Sitemap   Contact