?
Solved

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

Posted on 2003-10-31
1
Medium Priority
?
399 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 200 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

764 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