Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.2
-
Labels:None
-
Environment:All.
-
Number of attachments :
Description
Add "USLetter" as a paperType setting to be able to produce standard size printed output for the U.S. cvsdiff below:
Index: fo-layouts.xslt
===================================================================
RCS file: /home/cvspublic/maven-plugins/pdf/src/plugin-resources/fo-layouts.xslt,v
retrieving revision 1.6
diff -u -r1.6 fo-layouts.xslt
— fo-layouts.xslt 5 Mar 2004 10:27:26 -0000 1.6
+++ fo-layouts.xslt 13 Jun 2004 22:16:33 -0000
@@ -22,6 +22,7 @@
<xsl:variable name="pageWidth">
<xsl:choose>
<xsl:when test="$paperType = 'US'">8.5</xsl:when>
+ <xsl:when test="$paperType = 'USLetter'">8.5</xsl:when>
<xsl:when test="$paperType = 'A4'">8.25</xsl:when>
<xsl:otherwise>8.5</xsl:otherwise>
</xsl:choose>
@@ -30,6 +31,7 @@
<xsl:variable name="pageHeight">
<xsl:choose>
<xsl:when test="$paperType = 'US'">14</xsl:when>
+ <xsl:when test="$paperType = 'USLetter'">11</xsl:when>
<xsl:when test="$paperType = 'A4'">11.70</xsl:when>
<xsl:otherwise>14</xsl:otherwise>
</xsl:choose>
I suppose the properties documentation page should be updated too:
Index: properties.xml
===================================================================
RCS file: /home/cvspublic/maven-plugins/pdf/xdocs/properties.xml,v
retrieving revision 1.9
diff -u -r1.9 properties.xml
— properties.xml 4 Mar 2004 18:37:55 -0000 1.9
+++ properties.xml 13 Jun 2004 22:33:01 -0000
@@ -50,6 +50,8 @@
<code>A4</code> : 8.25in x 11.70in</li>
<li>
<code>US</code> : 8.5in x 14in</li>
+ <li>
+ <code>USLetter</code> : 8.5in x 11in</li>
</ul>
</td>
<td width="10%">Yes</td>