svn commit: r513886 - /ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r513886 - /ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl

sichen
Author: sichen
Date: Fri Mar  2 11:02:04 2007
New Revision: 513886

URL: http://svn.apache.org/viewvc?view=rev&rev=513886
Log:
Updated check PDF for FOP 0.93 and beyond.  This is an inelegant way to achieve fixed-height blocks, none of the other methods seem to work such as block-progression-dimension.minimum.

Modified:
    ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl

Modified: ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl?view=diff&rev=513886&r1=513885&r2=513886
==============================================================================
--- ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl (original)
+++ ofbiz/trunk/applications/accounting/webapp/accounting/payment/PrintChecks.fo.ftl Fri Mar  2 11:02:04 2007
@@ -51,7 +51,14 @@
 
         <#-- the check: note that the format is fairly precise -->
 
-        <fo:table height="8.85cm">
+        <#-- this seems to be the only way to force a fixed height in fop -->
+        <fo:table table-layout="fixed">
+          <fo:table-column column-width="100%"/>
+          <fo:table-body>
+          <fo:table-row height="8.85cm">
+          <fo:table-cell>
+          
+        <fo:table table-layout="fixed">
           <fo:table-column column-width="17.7cm"/>
           <fo:table-column/>
           <fo:table-body>
@@ -81,9 +88,21 @@
           </fo:table-body>
         </fo:table>
 
+        </fo:table-cell>
+        </fo:table-row>
+        </fo:table-body>
+        </fo:table>
+
         <#-- payment applications (twice: both blocks are exactly the same) -->
 
-        <fo:table height="9.3cm" margin="10pt">
+        <#-- this seems to be the only way to force a fixed height in fop -->
+        <fo:table table-layout="fixed">
+          <fo:table-column column-width="100%"/>
+          <fo:table-body>
+          <fo:table-row height="9.3cm">
+          <fo:table-cell>
+
+        <fo:table height="9.3cm" table-layout="fixed" margin-left="5pt" margin-right="5pt">
           <fo:table-column/>
           <fo:table-column/>
           <fo:table-column/>
@@ -162,9 +181,22 @@
           </fo:table-body>
         </fo:table>
 
+        </fo:table-cell>
+        </fo:table-row>
+        </fo:table-body>
+        </fo:table>
+
+
         <#-- copy of above -->
 
-        <fo:table height="9.3cm" margin="10pt">
+        <#-- this seems to be the only way to force a fixed height in fop -->
+        <fo:table table-layout="fixed">
+          <fo:table-column column-width="100%"/>
+          <fo:table-body>
+          <fo:table-row height="9.3cm">
+          <fo:table-cell>
+
+        <fo:table height="9.3cm" table-layout="fixed" margin-left="5pt" margin-right="5pt">
           <fo:table-column/>
           <fo:table-column/>
           <fo:table-column/>
@@ -240,6 +272,11 @@
               </fo:table-cell>
             </fo:table-row>
           </fo:table-body>
+        </fo:table>
+
+        </fo:table-cell>
+        </fo:table-row>
+        </fo:table-body>
         </fo:table>
 
       </fo:block>