Hi all,

 

I am using FOP 0.20.5 in order to create PDF documents ( for example invoices) I have this problem:

 

When the line number of my document is higher than the one that can be included in the page of PDF document, Apache  doesn’t change page and the remaining lines are not shown anymore.

I made some tests and I understand that the problem is caused from the use of the fo:blok-container rather of fo:block

I want to use container. Can anybody help me?

Thanks in advance Lucio 

 

Here you can find a source sample I use for my tests

  <xsl:template match="/">

      <fo:root>

         <fo:layout-master-set>

            <fo:simple-page-master master-name="doc" page-width="210mm"

                        page-height="296mm" margin-top="10mm" margin-bottom="5mm" margin-left="5mm"

                        margin-right="5mm">

                <fo:region-before region-name="areaHeader" extent="0mm"/>

 

               <fo:region-body region-name="areaBody" margin-top="0mm"/>

            </fo:simple-page-master>

         </fo:layout-master-set>

 

         <fo:page-sequence master-reference="doc" initial-page-number="1"                                  

force-page-count="no-force" country="it" language="it">

    

            <fo:static-content flow-name="areaHeader" >

               <xsl:call-template name="templateHeader"/>

            </fo:static-content>

 

 

            <fo:flow flow-name="areaBody">              

               <xsl:call-template name="templateBody"/>    

            </fo:flow>

         </fo:page-sequence>

      </fo:root>

   </xsl:template>

 

   <xsl:template name="templateBody">

      <fo:block-container height="170mm" width="200mm" top="110mm" position="absolute">

         <fo:block-container font-size="9pt" height="120mm" width="200mm" position="absolute">

            <fo:table table-layout="fixed">

....

....

       <!-- When the number of lines is higher than page it doesn't make the page break  and the remaining lines are not shown -->

            </fo:table>

         </fo:block-container>

      </fo:block-container>

   </xsl:template>

</xsl:stylesheet>

 

 

 

Reply via email to