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 "Valeiko, Michael" <MI...@ca.com> on 2003/03/06 20:15:28 UTC
Image overwriting text on second page.
I've include an fo document where when the image is on the first page it performs as I expect, the text and image side by side. However,
as soon as the image lands on the second page it overlays on top of the text. Am I missing some page formatting?
Thanks
Mike
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="serif" font-size="10pt" hyphenate="false" role="html" text-align="start" writing-mode="lr-tb">
<fo:layout-master-set>
<fo:simple-page-master master-name="all-pages" page-height="11in" page-width="8.5in">
<fo:region-body column-count="1" column-gap="12pt" margin-bottom=".5in" margin-left=".5in" margin-right=".5in" margin-top=".5in"/>
<fo:region-before display-align="before" extent=".5in" region-name="page-header"/>
<fo:region-after display-align="after" extent=".5in" region-name="page-footer"/>
<fo:region-start extent=".5in"/>
<fo:region-end extent=".5in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="all-pages">
<fo:title/>
<fo:static-content flow-name="page-header">
<fo:block font-size="small" space-before="0.5in" space-before.conditionality="retain" text-align="center" white-space-collapse="false"/>
</fo:static-content>
<fo:static-content flow-name="page-footer">
<fo:block font-size="small" space-after="0.5in" space-after.conditionality="retain" text-align="center"/>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block space-after="9.5in">
</fo:block>
<fo:block>
<fo:inline role="u" text-decoration="underline">
<fo:inline font-weight="bold" role="b">
<fo:inline font-family="serif">
<fo:inline font-size="14pt" keep-together.within-column="always" keep-with-next.within-column="always" role="font">Test Image</fo:inline>
</fo:inline>
</fo:inline>
</fo:inline>
<fo:inline font-weight="bold" role="b">
<fo:inline font-family="serif">
<fo:inline font-size="14pt" keep-together.within-column="always" keep-with-next.within-column="always" role="font"/>
</fo:inline>
</fo:inline>
<fo:external-graphic role="img" space-after="3.0em" src="url('tcolon.png')"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Re: Image overwriting text on second page.
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Valeiko, Michael wrote:
> I've include an fo document where when the image is on the first page it
> performs as I expect, the text and image side by side. However, as soon as
> the image lands on the second page it overlays on top of the text. Am I
> missing some page formatting?
No, it's a bug, a more insidious variant of the text drop bug #13464.
Actually, the text is dropped, not overwritten by the image. This
happens:
1. An area is created on the first page. A line is created in this
area, and the text is added.
2. It is attempted to add the image to the line, which fails because
of lack of space.
3. The block is left open, which means the line in progress is not
added to the block.
4. A new page with a new block area and a new line is started, and
the image is laid out there.
Work around: Either don't inline images which are higher than the
font size, or be sure that they wont be laid out near the edge of
a page and spill over.
This kind of ugly problems is tackled in the redesign.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org