You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Heger, Doug" <Do...@westgroup.com> on 2001/05/17 16:00:58 UTC

Out of Memory problem

I have seen type of bug mentioned on the web, here is a link I found
basically describing a problem I appear to be having.

http://www.owal.co.uk:8090/asf/servlet/asf/screen/DisplayQuestionAnswer/acti
on/SetAll/project_id/18/faq_id/276/topic_id/495/question_id/788

I have ran into this with large images and have avoided those for now, but I
also have seen this problem in the following one column, one row, table,
that I have included.  I am converting html to pdf on the fly on our server
using FOP, but the below is a scaled down portion of one document that will
get into an endless loop.  I am using version 17, but am seeing the
following locally using 18, also.  I have notice other tables will carry
over to the following page, but this appears to try to fit on one page and
when it can't it appears to look for a page that it can fit on.


Example. (Reducing margin-top and margin-bottom will allow this to
successfully convert, but have it set this way to show the problem I am
seeing)

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:html="http://www.w3.org/1999/xhtml">
   <fo:layout-master-set>
      <fo:simple-page-master page-width="210mm" page-height="297mm"
master-name="BodyPage">
         <fo:region-body margin-top="25mm" margin-right="8mm"
margin-bottom="25mm" margin-left="8mm"/>
         <fo:region-before border-after-style="solid" border-width="thin"
extent="5mm"/>
         <fo:region-after border-after-style="solid" border-width="thin"
extent="5mm"/>
      </fo:simple-page-master>
      <fo:simple-page-master page-width="210mm" page-height="297mm"
master-name="CoverPage">
         <fo:region-body margin-top="0mm" margin-right="8mm"
margin-bottom="0mm" margin-left="8mm"/>
      </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-name="BodyPage">
      <fo:static-content flow-name="xsl-region-before">
         <fo:block text-align="center" font-size="9pt"/>
      </fo:static-content>
      <fo:static-content flow-name="xsl-region-after">
         <fo:block text-align="center" font-size="9pt">
        - <fo:page-number/> -
   </fo:block>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body">
					<fo:block
start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">
               <fo:block start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">
                     <fo:table width="180mm">
	                     <fo:table-column column-width="180mm"/>

                        <fo:table-body>
                           <fo:table-row>
                              <fo:table-cell text-align="start">
                                 <fo:block text-align="start">
                                    <fo:block
start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">
                                       <fo:inline font-weight="bold">Women
entering male workforce</fo:inline>
                                    </fo:block>
                                    <fo:block
start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">When President Bush assembles his daily senior staff
meetings of 18 top advisors, women account for eight of those in attendance.
The president has more women in top, traditionally male-dominated 
White House positions than any other president. Furthermore, aide Karen
Hughes is the highest-ranking female aide to any modern president. But that
shouldn't be surprising, as an analysis of Bureau of 
Labor Statistics data for 2000 from the Employment Policy Foundation finds
that women are entering other male-dominated fields at increasing rates, and
that those women now earn the same or more 
than their male counterparts. EPF identified the top 10 occupations where
women's participation has increased most since 1989:</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Veterinarians. Women account for 43
percent of all vets, up from 2 percent.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Public administrators. Women account
for 37 percent, up from 4 percent.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Math and science teachers.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Chemistry teachers.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Industrial engineers. Women account
for 22 percent, up from 6 percent.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Dentists.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Automobile salespeople.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Messengers.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Physicians assistants. Women account
for 58 percent, up from 20 percent.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Members of the clergy. Women account
for 18 percent, up from 6 percent.</fo:block>
                                   <fo:block
start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">"Women are clearly making great strides in the
workplace," says EPF vice president D.J. Norquist. "Women are consciously
deciding to go into fields traditionally dominated by men and they are
proving 
their work contributions are just as valuableas can be evidenced by equal
paychecks. Any type of pay disparity in these groups can be accounted for
simply by the hours of work women put in compared 
to men, which may be attributable to non-work commitments, such as
family."</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent)"
end-indent="from-parent(end-indent)" text-indent="1em" space-before="0.6em"
space-after="0.6em">According to the Census Bureau, women have overcome some
other major barriers:</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Ninety percent of women age 25 to 29
have at least a high school diploma and 29 percent hold at least a
bachelor's degree. The respective percentages for young men are 87 percent
and 26 percent.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Women also earn half the college
degrees awarded in business and management. In 1971, less than 10 percent of
those degrees went to women.</fo:block>
                                    <fo:block
start-indent="from-parent(start-indent) + 4em "
end-indent="from-parent(end-indent) + 4em" text-indent="1em"
space-before="0.6em" space-after="0.6em" margin-top="1em"
margin-bottom="1em">
                                       Women now own one-third of all U.S.
businesses.</fo:block>
                                 </fo:block>
                              </fo:table-cell>
                           </fo:table-row>
                        </fo:table-body>
                     </fo:table>
               </fo:block>
         </fo:block>
      </fo:flow>
   </fo:page-sequence>
</fo:root> 


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Out of Memory problem

Posted by Alex McLintock <al...@yahoo.com>.
--- "Heger, Doug" <Do...@westgroup.com> wrote: 
> I have seen type of bug mentioned on the web, here is a link I found
> basically describing a problem I appear to be having.
> 
> http://www.owal.co.uk:8090/asf/servlet/asf/screen/DisplayQuestionAnswer/acti
> on/SetAll/project_id/18/faq_id/276/topic_id/495/question_id/788

Hooray ! Someone using the FAQ. I have a warm glow inside.
Folks - Please remember to mark an answer as for the FAQ 
or preferably email it to me if you think I should add it to the FAQ.
(The same goes for any of the Apache FAQs on the main Apache site)

I don't have any good news regarding this I am afraid - I have seen very similar 
problems and don't have a solution. 

FOP doesn't seem to be able to split the table cell over two pages...
Don't know why.


Alex

=====
Alex McLintock        alex@OWAL.co.uk
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/ 
DR WHO COMPETITION: http://www.diversebooks.com/cgi-bin/caption/captions.cgi?date=200104
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org