You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Jeff Markham <je...@worldnet.att.net> on 2001/05/18 05:35:58 UTC

Table/page break issue

This is my virgin FO file below.  I'm hoping some seasoned FOP veterans can
help me out.  The form page-breaks after the the table-row who's first
table-cell value is 'Net 30'.  There is, of course, a lot of white space
between that break and the beginning of the region-after.  I don't know what
I'm doing wrong and I've been looking at it for a couple days now.  Any help
would be great.  I'm using 0.18.1-DEV and you can see what I'm talking about
if you run this standalone.  Thanks a ton.

<?xml version="1.0" encoding="utf-8"?>

<fo:root xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <fo:layout-master-set>
      <fo:simple-page-master master-name="invoice" page-height="11in"
page-width="8.5in" margin-top=".25in" margin-bottom=".25in"
margin-left=".25in" margin-right=".25in">
         <fo:region-body/>
         <fo:region-before extent="0in"/>
         <fo:region-after extent="1.1in"/>
      </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-name="invoice">
      <fo:static-content flow-name="xsl-region-after">
         <fo:block font-size="10pt" font-weight="bold"
font-family="sans-serif" line-height="12pt" space-after.optimum="3pt"
text-align="justify">ALL CLAIMS FOR SHORTAGE OR DAMAGE MUST BE PRESENTED
WITHIN FIVE (5) DAYS.</fo:block>
         <fo:block font-size="6pt" font-family="sans-serif"
line-height="8pt" space-after.optimum="3pt" text-align="justify">Payment in
full is required by the terms set forth above.  We retain full interest of
items purchased under this invoice until full payment has been
received.</fo:block>
         <fo:block font-size="6pt" font-family="sans-serif"
line-height="8pt" space-after.optimum="3pt" text-align="justify">We hereby
certify that these goods were processed in compliance with all applicable
requirements of Sections 6, 7, and 12 of the Fair Labor Standards Act, as
amended, and of regulations and orders of the United States Department of
Labor issued under Section 14 thereof.</fo:block>
         <fo:block font-size="6pt" font-family="sans-serif"
line-height="8pt" space-after.optimum="3pt" text-align="justify">The
perishable agricultural commodities listed on the invoice are sold subject
to the statutory trust authorized by Section 5(c) of the Perishable
Agricultural Commodities Act, 1930 (7 U.S.C. 499e(c)).  The seller of these
commodities retains a Trust claim over these commodities, all inventories of
food or other products derived from these commodities, and any receivables
or proceeds from the sale of these commodities until full payment is
received.</fo:block>
         <fo:block font-size="6pt" font-family="sans-serif"
line-height="8pt" space-after.optimum="3pt" text-align="justify">A finance
charge of 1.5% (18% APR) will be charged on all invoices 30 days past
due.</fo:block>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body">
         <fo:table keep-with-next="always">
            <fo:table-column column-width="5.5in"/>
            <fo:table-column column-width="2.5in"/>
            <fo:table-body>
               <fo:table-row>
                  <fo:table-cell>
                     <fo:block>
                        <fo:external-graphic
src="http://localhost/web/images/pfismall.gif"/>
                     </fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block font-size="30pt" font-family="sans-serif"
font-weight="bold" line-height="40pt" space-after.optimum="15pt"
background-color="#EFC57D" color="white" text-align="center"
padding-top="3pt">Invoice</fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
         <fo:table keep-with-next="always">
            <fo:table-column column-width="5.5in"/>
            <fo:table-column column-width="2.5in"/>
            <fo:table-body>
               <fo:table-row>
                  <fo:table-cell padding-top="5pt" margin-left=".4cm"
font-size="12pt" font-family="sans-serif" line-height="14pt"
text-align="start">
                     <fo:block>123 Main St.</fo:block>
                     <fo:block>P.O. Box 123</fo:block>
                     <fo:block>Anytown, USA  55555-1111</fo:block>
                     <fo:block>Phone:  (555) 555-5555</fo:block>
                     <fo:block>Fax:  (555) 555-5555</fo:block>
                     <fo:block>acme.com</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:table>
                        <fo:table-column column-width="1.25in"/>
                        <fo:table-column column-width="1.25in"/>
                        <fo:table-body font-size="10pt"
font-family="sans-serif" font-weight="bold" text-align="center">
                           <fo:table-row>
                              <fo:table-cell border-top-style="solid"
border-bottom-style="solid" border-left-style="solid"
border-right-style="solid">
                                 <fo:block padding-top="3pt"
line-height="12pt" space-after.optimum="3pt" color="black">Invoice
no.</fo:block>
                              </fo:table-cell>
                              <fo:table-cell border-top-style="solid"
border-bottom-style="solid" border-right-style="solid">
                                 <fo:block padding-top="3pt"
line-height="12pt" space-after.optimum="3pt"
color="#CA5E3A">12345</fo:block>
                              </fo:table-cell>
                           </fo:table-row>
                           <fo:table-row>
                              <fo:table-cell border-bottom-style="solid"
border-left-style="solid" border-right-style="solid">
                                 <fo:block padding-top="3pt"
line-height="12pt" space-after.optimum="3pt" color="black">Invoice
date</fo:block>
                              </fo:table-cell>
                              <fo:table-cell border-bottom-style="solid"
border-right-style="solid">
                                 <fo:block padding-top="3pt"
line-height="12pt" space-after.optimum="3pt" color="#CA5E3A">Nov 15,
2001</fo:block>
                              </fo:table-cell>
                           </fo:table-row>
                        </fo:table-body>
                     </fo:table>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
         <fo:table padding-top=".1cm" keep-with-next="always">
            <fo:table-column column-width="3.75in"/>
            <fo:table-column column-width="2.125in"/>
            <fo:table-column column-width="2.125in"/>
            <fo:table-body>
               <fo:table-row background-color="#CA5E3A" height="8pt">
                  <fo:table-cell>
                     <fo:block font-size="8pt" font-family="sans-serif"
font-weight="bold" line-height="10pt" color="white" margin-left=".2cm">Bill
to</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block font-size="8pt" font-family="sans-serif"
font-weight="bold" line-height="10pt" color="white"
margin-left=".2cm">Ordered by</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block font-size="8pt" font-family="sans-serif"
font-weight="bold" line-height="10pt" color="white" margin-left=".2cm">Ship
to</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row>
                  <fo:table-cell font-size="11pt" font-family="sans-serif"
line-height="13pt" color="black" text-align="start" margin-left=".2cm"
padding-top="3pt">
                     <fo:block margin-left=".2cm">Bill to name</fo:block>
                     <fo:block margin-left=".2cm">Address 1</fo:block>
                     <fo:block margin-left=".2cm">Address 2</fo:block>
                     <fo:block margin-left=".2cm">Address 3</fo:block>
                     <fo:block margin-left=".2cm">City, State
Zip</fo:block>
                     <fo:block margin-left=".2cm">PFI id: 12345</fo:block>
                  </fo:table-cell>
                  <fo:table-cell font-size="11pt" font-family="sans-serif"
line-height="13pt" color="black" text-align="start" margin-left=".2cm"
padding-top="3pt">
                     <fo:block margin-left=".2cm">Ordered by name</fo:block>
                     <fo:block margin-left=".2cm">Address 1</fo:block>
                     <fo:block margin-left=".2cm">Address 2</fo:block>
                     <fo:block margin-left=".2cm">Address 3</fo:block>
                     <fo:block margin-left=".2cm">City, State
Zip</fo:block>
                     <fo:block margin-left=".2cm">PFI id: 12345</fo:block>
                  </fo:table-cell>
                  <fo:table-cell font-size="11pt" font-family="sans-serif"
line-height="13pt" color="black" text-align="start" margin-left=".2cm"
padding-top="3pt">
                     <fo:block margin-left=".2cm">Ship to name</fo:block>
                     <fo:block margin-left=".2cm">Address 1</fo:block>
                     <fo:block margin-left=".2cm">Address 2</fo:block>
                     <fo:block margin-left=".2cm">Address 3</fo:block>
                     <fo:block margin-left=".2cm">City, State
Zip</fo:block>
                     <fo:block margin-left=".2cm">PFI id: 12345</fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
         <fo:block padding-bottom=".2cm" keep-with-next="always">
            <fo:leader leader-pattern="rule" leader-length="8in"/>
         </fo:block>
         <fo:block font-size="10pt" font-family="sans-serif"
font-weight="bold" text-align="justify" keep-with-next="always">Please remit
to:  P.O. Box 111, Anytown, USA  55555-5555.</fo:block>
         <fo:block keep-with-next="always">
            <fo:leader leader-pattern="rule" leader-length="8in"/>
         </fo:block>
         <fo:table padding-top=".25cm" keep-with-next="always">
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-body>
               <fo:table-row background-color="#CA5E3A" height="8pt"
font-size="8pt" font-family="sans-serif" font-weight="bold" color="white"
text-align="start">
                  <fo:table-cell>
                     <fo:block line-height="10pt"
margin-left=".2cm">Terms</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block line-height="10pt" margin-left=".2cm">BOL
no.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block line-height="10pt" margin-left=".2cm">Ship
date</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block line-height="10pt" margin-left=".2cm">Ship
via</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row font-size="10pt" font-family="sans-serif"
line-height="12pt" color="black" padding-top="3pt">
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">Net 30</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">005430</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">Nov 15, 2001</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">CPU</fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
         <fo:table padding-top=".25cm" keep-with-next="always">
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-column column-width="2in"/>
            <fo:table-body>
               <fo:table-row background-color="#CA5E3A" height="8pt"
font-size="8pt" font-family="sans-serif" font-weight="bold"
line-height="10pt" color="white">
                  <fo:table-cell>
                     <fo:block text-align="start"
margin-left=".2cm">FOB</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block text-align="start" margin-left=".2cm">PFI
Order no.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block text-align="start"
margin-left=".2cm">Customer P.O.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell>
                     <fo:block text-align="start"
margin-left=".2cm">Customer release no.</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row padding-top="3pt" color="black"
font-size="10pt" font-family="sans-serif" line-height="12pt">
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">Shelby, MI</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">230-1</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">4500076912</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">verbal</fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
         <fo:table padding-top=".25cm">
            <fo:table-column column-width="1in"/>
            <fo:table-column column-width="4in"/>
            <fo:table-column column-width="1in"/>
            <fo:table-column column-width="1in"/>
            <fo:table-column column-width="1in"/>
            <fo:table-body>
               <fo:table-row background-color="#CA5E3A" height="8pt"
font-size="8pt" font-family="sans-serif" font-weight="bold"
line-height="10pt" color="white">
                  <fo:table-cell text-align="center">
                     <fo:block margin-left=".2cm">Quantity</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start">
                     <fo:block margin-left=".2cm">Description</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="center">
                     <fo:block margin-left=".2cm">Unit weight</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="center">
                     <fo:block margin-left=".2cm">Price</fo:block>
                  </fo:table-cell>
                  <fo:table-cell border-right-style="solid"
border-right-width="thick" border-color="#CA5E3A" text-align="end">
                     <fo:block margin-right=".2cm">Extension</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row font-size="10pt" font-family="sans-serif"
line-height="12pt" color="black">
                  <fo:table-cell text-align="end" border-left-style="solid">
                     <fo:block margin-right=".3cm"
padding-top="3pt">10,000</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">PFI lot
no. 10663</fo:block>
                     <fo:block margin-left=".2cm">40# CTN IQF APPLES SLICE
ROME ASC.</fo:block>
                     <fo:block margin-left=".2cm">Customer item no.
10000620</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">40 lbs</
fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm"
padding-top="3pt">0.259/lb.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="end" border-left-style="solid"
border-right-style="solid">
                     <fo:block margin-right=".2cm"
padding-top="3pt">103,600.00</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row font-size="10pt" font-family="sans-serif"
line-height="12pt" color="black">
                  <fo:table-cell text-align="end" border-left-style="solid">
                     <fo:block margin-right=".3cm"
padding-top="3pt">10,000</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">PFI lot
no. 10663</fo:block>
                     <fo:block margin-left=".2cm">40# CTN IQF APPLES SLICE
ROME ASC.</fo:block>
                     <fo:block margin-left=".2cm">Customer item no.
10000620</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">40
lbs</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm"
padding-top="3pt">0.259/lb.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="end" border-left-style="solid"
border-right-style="solid">
                     <fo:block margin-right=".2cm"
padding-top="3pt">103,600.00</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row font-size="10pt" font-family="sans-serif"
line-height="12pt" color="black">
                  <fo:table-cell text-align="end" border-left-style="solid">
                     <fo:block margin-right=".3cm"
padding-top="3pt">10,000</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">PFI lot
no. 10663</fo:block>
                     <fo:block margin-left=".2cm">40# CTN IQF APPLES SLICE
ROME ASC.</fo:block>
                     <fo:block margin-left=".2cm">Customer item no.
10000620</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm" padding-top="3pt">40
lbs</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="start"
border-left-style="solid">
                     <fo:block margin-left=".2cm"
padding-top="3pt">0.259/lb.</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="end" border-left-style="solid"
border-right-style="solid">
                     <fo:block margin-right=".2cm"
padding-top="3pt">103,600.00</fo:block>
                  </fo:table-cell>
               </fo:table-row>
               <fo:table-row line-height="12pt">
                  <fo:table-cell border-left-style="solid"
border-bottom-style="solid"/>
                  <fo:table-cell border-left-style="solid"
border-bottom-style="solid"/>
                  <fo:table-cell border-left-style="solid"
border-bottom-style="solid"/>
                  <fo:table-cell border-left-style="solid"
border-bottom-style="solid"/>
                  <fo:table-cell border-left-style="solid"
border-right-style="solid" border-bottom-style="solid"/>
               </fo:table-row>
               <fo:table-row font-size="10pt" font-family="sans-serif"
color="black" line-height="12pt">
                  <fo:table-cell/>
                  <fo:table-cell line-height="12pt"/>
                  <fo:table-cell/>
                  <fo:table-cell font-weight="bold" text-align="center"
border-left-style="solid" border-bottom-style="solid">
                     <fo:block padding-top="3pt">Total</fo:block>
                  </fo:table-cell>
                  <fo:table-cell text-align="end" border-left-style="solid"
border-right-style="solid" border-bottom-style="solid">
                     <fo:block margin-right=".2cm"
padding-top="3pt">$2,103,600.00</fo:block>
                  </fo:table-cell>
               </fo:table-row>
            </fo:table-body>
         </fo:table>
      </fo:flow>
   </fo:page-sequence>
</fo:root>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org