Solved

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

Posted on 2003-10-31
1
396 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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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 …

829 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