fj_doc_mod_fop_config.template.fop_doc.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fj-doc-mod-fop Show documentation
Show all versions of fj-doc-mod-fop Show documentation
Rendered for PDF using Apache FOP
The newest version!
<#assign comp=docBase.stableInfo['doc-version-compatibility']!'2-x' ><#if (comp = '1-x') ><#import "/macro/doc_element_1-x.ftl" as doc_element><#else><#import "/macro/doc_element.ftl" as doc_element>#if>
<#import "/macro/doc_info.ftl" as doc_info>
<#assign docInfo=docBase.info/>
xml:lang="${docBase.infoDocLanguage}"#if>
<@doc_info.checkDefaultFont info=docInfo/>
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<#assign bodyMarginTop="">
<#assign bodyMarginBottom="">
<#if (docBase.useHeader)>
<#assign headerSize="${docBase.docHeader.expectedSize}mm">
<#assign bodyMarginTop=" margin-top='${headerSize}' ">
#if>
<#if (docBase.useFooter)>
<#assign footerSize="${docBase.docFooter.expectedSize}mm">
<#assign bodyMarginBottom=" margin-bottom='${footerSize}' ">
#if>
<#if (docBase.useHeader)>
#if>
<#if (docBase.useFooter)>
#if>
<#if (docBase.infoDocTitle)?? || (docBase.infoDocSubject)?? || (docBase.infoDocAuthor)?? || (docBase.infoDocLanguage)??>
<#if (docBase.infoDocTitle)??>${docBase.infoDocTitle} #if>
<#if (docBase.infoDocAuthor)??>${docBase.infoDocAuthor} #if>
<#if (docBase.infoDocSubject)??>${docBase.infoDocSubject} #if>
<#if (docBase.infoDocLanguage)??>${docBase.infoDocLanguage} #if>
<#if (docBase.infoDocCreator)??>${docBase.infoDocCreator}<#else>Apache FOP over Fugerit Venus DOC#if>
#if>
<#if (docBase.docBookmarkTree)??>
<#list docBase.docBookmarkTree.elementList as docBookmark>
${docBookmark.title}
#list>
#if>
<#if (docBase.useHeader)>
<@doc_element.handleElementList elements=docBase.docHeader.elementList/>
#if>
<#if (docBase.useFooter)>
<@doc_element.handleElementList elements=docBase.docFooter.elementList/>
#if>
<#if ( (docBase.docBackground)?? && docBase.docBackground.elementList?size > 0 )>
<@doc_element.handleElementList elements=docBase.docBackground.elementList/>
#if>
<@doc_element.handleElementList elements=docBase.docBody.elementList/>