Link to home
Start Free TrialLog in
Avatar of sunshine737
sunshine737

asked on

Error occuring "AREA OVERFLOW" when using xsl-fo for printing pdf documents.Please Help me.

Hi,

I am using xsl-formatter for printing pdf documents.
i am usign xml and xsl and xs-formatter from antenna house.

I am calling a file(which has some static content)  from my xsl.

I am writing xsl:fo code to print pdf documents.

I created a table ,and in that i am calling the  static content file"

I am getting error "AREA OVERFLOW".

I am thinking that i have to keep some atribute ,so that if more content is there,it automatically prints the content into next page.

some code :

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
      <fo:simple-page-master master-name="FirstPage" page-height="29.7cm" margin-left="1.5cm" margin-
                    right="1.5cm" margin-top="1.7cm">
      <fo:region-body />
      <fo:region-before />
      <fo:region-after extent="1cm" />
      </fo:simple-page-master>
     </fo:layout-master-set>
    <fo:page-sequence master-reference="FirstPage">
       <fo:static-content flow-name="xsl-region-before"></fo:static-content>
        <fo:flow flow-name="xsl-region-body">
      <xsl:call-template name="firstpage" />
         </fo:flow>
   </fo:page-sequence>

<fo:page-sequence master-reference="FirstPage">
     <fo:static-content flow-name="xsl-region-before"></fo:static-content>
         <fo:flow flow-name="xsl-region-body">
      <xsl:call-template name="call_rules" />
          </fo:flow>
   </fo:page-sequence>
</fo:root>

<xsl:template name="call_rules">
<fo:table width="18cm" space-after="0cm">
   <fo:table-body>
       <fo:table-row height="0.5cm" text-align="center">
          <fo:table-cell>
              <fo:block space-before="0.4cm" linefeed-treatment="preserve">
          <xsl:value-of  select="sg:ReadContent('Rules.txt')"/>
      </fo:block>
          </fo:table-cell>
       </fo:table-row>
    </fo:table-body>
</fo:table>
</xsl:template>

I am getting AREA OVERFLOW error.

my text file "Rules.txt" is too big,
thats why i am gettign this error.

If more text is there,that should be printed in next page.


thanks a million times for your help.


regards
vihar123
ASKER CERTIFIED SOLUTION
Avatar of praveen79
praveen79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial