Make cover header- and footer-height configurable
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280493 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4de54a1135
commit
cb79a0ea0c
@ -180,6 +180,12 @@ maven_version = [${maven_version}]
|
|||||||
<arg value="-PARAM"/>
|
<arg value="-PARAM"/>
|
||||||
<arg value="debug"/>
|
<arg value="debug"/>
|
||||||
<arg value="${maven.pdf.debug}"/>
|
<arg value="${maven.pdf.debug}"/>
|
||||||
|
<arg value="-PARAM"/>
|
||||||
|
<arg value="header_Height"/>
|
||||||
|
<arg value="${maven.pdf.cover.headerHeight}"/>
|
||||||
|
<arg value="-PARAM"/>
|
||||||
|
<arg value="footer_Height"/>
|
||||||
|
<arg value="${maven.pdf.cover.footerHeight}"/>
|
||||||
<classpath>
|
<classpath>
|
||||||
<pathelement location="${plugin.getDependencyPath('xerces')}"/>
|
<pathelement location="${plugin.getDependencyPath('xerces')}"/>
|
||||||
<pathelement location="${plugin.getDependencyPath('xalan')}"/>
|
<pathelement location="${plugin.getDependencyPath('xalan')}"/>
|
||||||
|
|||||||
@ -33,6 +33,8 @@ maven.pdf.cover.projectName=${pom.name}
|
|||||||
maven.pdf.cover.type=Project Documentation
|
maven.pdf.cover.type=Project Documentation
|
||||||
maven.pdf.cover.version=${pom.currentVersion}
|
maven.pdf.cover.version=${pom.currentVersion}
|
||||||
#maven.pdf.cover.date=Not defined by default
|
#maven.pdf.cover.date=Not defined by default
|
||||||
|
maven.pdf.cover.headerHeight=0.5
|
||||||
|
maven.pdf.cover.footerHeight=0.3
|
||||||
maven.pdf.projectLogo=${pom.logo}
|
maven.pdf.projectLogo=${pom.logo}
|
||||||
maven.pdf.companyLogo=${pom.organization.logo}
|
maven.pdf.companyLogo=${pom.organization.logo}
|
||||||
|
|
||||||
@ -41,4 +43,4 @@ maven.pdf.companyLogo=${pom.organization.logo}
|
|||||||
# Not defined by default
|
# Not defined by default
|
||||||
#maven.jar.jimi=${maven.repo.local}/jimi/jars/jimi-X.Y.Z.jar
|
#maven.jar.jimi=${maven.repo.local}/jimi/jars/jimi-X.Y.Z.jar
|
||||||
#maven.jar.jaicore=${maven.repo.local}/jai/jars/jai_core-X.Y.Z.jar
|
#maven.jar.jaicore=${maven.repo.local}/jai/jars/jai_core-X.Y.Z.jar
|
||||||
#maven.jar.jaicodec=${maven.repo.local}/jai/jars/jai_codec-X.Y.Z.jar
|
#maven.jar.jaicodec=${maven.repo.local}/jai/jars/jai_codec-X.Y.Z.jar
|
||||||
|
|||||||
@ -21,8 +21,8 @@
|
|||||||
<xsl:variable name="colWidth2" select="$maxBodyWidth div 2"/>
|
<xsl:variable name="colWidth2" select="$maxBodyWidth div 2"/>
|
||||||
<xsl:variable name="colWidth3" select="$maxBodyWidth div 3"/>
|
<xsl:variable name="colWidth3" select="$maxBodyWidth div 3"/>
|
||||||
<xsl:variable name="maxTableHeight" select="$maxBodyHeight - $regionTopMargin"/>
|
<xsl:variable name="maxTableHeight" select="$maxBodyHeight - $regionTopMargin"/>
|
||||||
<xsl:variable name="headerHeight">0.5</xsl:variable>
|
<xsl:variable name="headerHeight" select="$header_Height"/>
|
||||||
<xsl:variable name="footerHeight">0.3</xsl:variable>
|
<xsl:variable name="footerHeight" select="$footer_Height"/>
|
||||||
<xsl:variable name="lineHeight">0.014</xsl:variable>
|
<xsl:variable name="lineHeight">0.014</xsl:variable>
|
||||||
<xsl:variable name="middleHeight" select="$maxTableHeight - $headerHeight - $footerHeight - $lineHeight - $lineHeight - 0.5"/>
|
<xsl:variable name="middleHeight" select="$maxTableHeight - $headerHeight - $footerHeight - $lineHeight - $lineHeight - 0.5"/>
|
||||||
<xsl:template name="fo-cover">
|
<xsl:template name="fo-cover">
|
||||||
|
|||||||
@ -38,6 +38,8 @@
|
|||||||
<xsl:param name="coverType">Project Documentation</xsl:param>
|
<xsl:param name="coverType">Project Documentation</xsl:param>
|
||||||
<xsl:param name="coverVersion">1.0</xsl:param>
|
<xsl:param name="coverVersion">1.0</xsl:param>
|
||||||
<xsl:param name="coverDate">January 1, 1901</xsl:param>
|
<xsl:param name="coverDate">January 1, 1901</xsl:param>
|
||||||
|
<xsl:param name="header_Height">0.5</xsl:param>
|
||||||
|
<xsl:param name="footer_Height">0.3</xsl:param>
|
||||||
<xsl:param name="debug">false</xsl:param>
|
<xsl:param name="debug">false</xsl:param>
|
||||||
<!-- These next two variables are used in cheap-and-cheerful case conversions -->
|
<!-- These next two variables are used in cheap-and-cheerful case conversions -->
|
||||||
<xsl:variable name="lc">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
<xsl:variable name="lc">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="2.5-SNAPSHOT" date="in SVN">
|
<release version="2.5-SNAPSHOT" date="in SVN">
|
||||||
|
<action dev="ltheussl" type="add">Make cover header- and footer-height configurable.</action>
|
||||||
<action dev="ltheussl" type="fix" issue="MPPDF-40">Use optional id tag for sub/section anchors to avoid problems with identical names.</action>
|
<action dev="ltheussl" type="fix" issue="MPPDF-40">Use optional id tag for sub/section anchors to avoid problems with identical names.</action>
|
||||||
</release>
|
</release>
|
||||||
<release version="2.4" date="2005-09-05">
|
<release version="2.4" date="2005-09-05">
|
||||||
|
|||||||
@ -150,12 +150,24 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td width="25%">maven.pdf.cover.date</td>
|
<td width="25%">maven.pdf.cover.date</td>
|
||||||
<td>Defaults to current day.</td>
|
<td>The date printed on the cover.</td>
|
||||||
<td width="10%">Yes</td>
|
<td width="10%">Yes</td>
|
||||||
<td>
|
<td>
|
||||||
<code>Empty.</code> The build date is used.
|
<code>Empty.</code> The build date is used.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width="25%">maven.pdf.cover.headerHeight</td>
|
||||||
|
<td>The height of the cover header.</td>
|
||||||
|
<td width="10%">Yes</td>
|
||||||
|
<td>Defaults to <code>0.5in</code>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width="25%">maven.pdf.cover.footerHeight</td>
|
||||||
|
<td>The height of the cover footer.</td>
|
||||||
|
<td width="10%">Yes</td>
|
||||||
|
<td>Defaults to <code>0.3in</code>.</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</subsection>
|
</subsection>
|
||||||
<subsection name="Project parameters">
|
<subsection name="Project parameters">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user