You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by pa...@free.fr on 2008/06/04 10:09:54 UTC
No warning for overflow in static-content
Hello
In the following example, I'm testing warnings on region-before overflow.
I create 2 page-sequences of 1 page with region-before overflow
I'm expecting 2 warnings but only get 1
* With FOP-trunk 663011:
WARN: Content overflows the viewport of the fo:region-before on page 2 in block-progression direction by 48000 millipoints. (See position 26:44)
--> Only 1 warning
* With FOP 0.95-beta:
WARN: static-content overflows the available area. (fo:static-content, location: 11/44)
WARN: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 26/44)
--> Warnings are different
The only difference between the 2 page-sequences is the "keep-together" on the fo:block of the static-content
I have tested with several "extent" values: if the extent value is very low, the warning appears but when I increase the extent value, the warning disappears.
Do you have some explanations or is it a bug ?
Thanks for your help
Patrice
--------------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="SPM" page-height="80mm" page-width="148mm" margin="7mm 4mm 7mm 4mm">
<fo:region-body margin="22mm 10mm 12mm 10mm" background-color="yellow"/>
<fo:region-before extent="24000mpt" region-name="SPMBefore" background-color="gray"/>
<fo:region-after extent="12mm" region-name="SPMAfter" display-align="after"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="SPM" >
<fo:static-content flow-name="SPMBefore">
<fo:block color="blue">
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>Texte</fo:block>
<fo:block>Texte</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="SPM" >
<fo:static-content flow-name="SPMBefore">
<fo:block color="blue" keep-together.within-column="always">
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
<fo:block>STATIC-CONTENT</fo:block>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>Texte</fo:block>
<fo:block>Texte</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
--------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: No warning for overflow in static-content
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Thanks for catching that, Patrice. I've restored the missing message:
http://svn.apache.org/viewvc?rev=663493&view=rev
Please note that the warning messages are different due to the new
processing feedback framework:
http://xmlgraphics.apache.org/fop/trunk/events.html
The main advantage with the new facility is the reliable programmatic
evaluation of events.
The reason for the warning in the first place:
You specify a 24pt height for the region-before but you have content
with an overall height of 72pt in the static-content.
On 04.06.2008 10:09:54 patrice.rosnet wrote:
>
> Hello
>
> In the following example, I'm testing warnings on region-before overflow.
> I create 2 page-sequences of 1 page with region-before overflow
> I'm expecting 2 warnings but only get 1
>
> * With FOP-trunk 663011:
> WARN: Content overflows the viewport of the fo:region-before on page 2 in block-progression direction by 48000 millipoints. (See position 26:44)
> --> Only 1 warning
>
> * With FOP 0.95-beta:
> WARN: static-content overflows the available area. (fo:static-content, location: 11/44)
> WARN: Part/page 0 overflows the available area in block-progression dimension. (fo:static-content, location: 26/44)
> --> Warnings are different
>
> The only difference between the 2 page-sequences is the "keep-together" on the fo:block of the static-content
>
>
> I have tested with several "extent" values: if the extent value is very
> low, the warning appears but when I increase the extent value, the
> warning disappears.
>
>
> Do you have some explanations or is it a bug ?
> Thanks for your help
> Patrice
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org