%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/309157/root/home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/
Upload File :
Create Path :
Current File : //proc/309157/root/home/waritko/jetty-distribution-9.4.21.v20190926/webapps/ROOT/templates/pdf.vm

#template("xwikivars.vm")
#if ($request.pdftemplate)
  #set ($pdfdoc = $xwiki.getDocument($request.pdftemplate))
#else
  #set($pdfdoc = $tdoc)
#end
#set($pdfobj = $pdfdoc.getObject('XWiki.PDFClass'))
## put the current doc being exported in a variable, to allow accessing it from the pdftemplate properties (header, footer, etc).
#set($pdfExportedDoc = $tdoc)
#template("pdfhtmlheader.vm")
#set ($withPageBreaks = false)
#if ("$!{request.pagebreaks}" == '1')
  #set ($withPageBreaks = true)
#end
#if ($request.pages)
  #set ($pages = $request.getParameterValues('pages'))
#else
  #set ($pages = ["$doc.documentReference"])
#end
<div id="xwikicontent">
  #foreach ($page in $pages)
    #set ($pageDoc = $xwiki.getDocument($page))
    $pageDoc.getRenderedContent()
    #if ($request.includechilds)
      #set ($clevel = $mathtool.toInteger($request.includechilds))
      #if (!$clevel)
        #set ($clevel = 0)
      #end
      #includeChildren($pageDoc $withPageBreaks)
    #elseif ($request.includelinks)
      #set ($clevel = $mathtool.toInteger($request.includelinks))
      #if (!$clevel)
        #set ($clevel = 0)
      #end
      #includeLinks($page $withPageBreaks)
    #end
    #if ($foreach.hasNext)
      #pagebreak()
    #end
  #end
</div>
## TODO: move that in a place common to old and new rendering footnotes
#if ($doc.syntax.toIdString() == 'xwiki/1.0')
#set($footnotes = "#putFootnotes()")
$doc.getRenderedContent($footnotes, 'xwiki/1.0')
#end
#if ("$!{request.comments}" == '1')
  #template("comments2.vm")
#end
#if ("$!{request.attachments}" == '1')
  <div id="xwikiattachments">
  #foreach ($attach in $doc.attachmentList)
    #if ($attach.isImage())
      <img src="${doc.getAttachmentURL($attach.filename)}" alt="${attach.filename}" />
      <br />
    #end
  #end
  </div>
#end
</div>
</div>
</body>
</html>

Zerion Mini Shell 1.0