Solved

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

Posted on 2003-10-31
1
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
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, …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

728 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