Solved

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

Posted on 2003-10-31
1
389 Views
Last Modified: 2013-11-18
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
0
Comment
Question by:vihar123
1 Comment
 
LVL 2

Accepted Solution

by:
praveen79 earned 50 total points
ID: 9695572
hi,
always better to fix the reionbody with some margin.
for example keep some margin
<fo:region-body margin-bottom="2cm" />
if more content is there ,formatter engine automaticaally displays content in next page.

But i am not sure.

check it out
try once.


regards
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now