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 Stanislav Gorkhover <St...@af-software.de> on 1999/11/18 15:10:22 UTC
Error on colored text in paged-block
Hi,
I've created a simple XSL-FO document containing a block. The textcolor
is set to red. The created PDF-File viewed with AcrobatReader 3.0 shows
the text in red only on the first page.
FOP version: 0.11.0.
Here is the document without the text.
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/XSL/Format/1.0">
<fo:layout-master-set>
<fo:simple-page-master page-master-name="pm1">
<fo:region-body margin-top="72pt" margin-bottom="72pt"
margin-right="50pt" margin-left="50pt">
</fo:region-body>
</fo:simple-page-master>
<fo:simple-page-master page-master-name="pm2">
<fo:region-body margin-top="72pt" margin-bottom="72pt"
margin-right="50pt" margin-left="50pt">
</fo:region-body>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence>
<fo:sequence-specification>
<fo:sequence-specifier-repeating page-master-repeating="pm1"
page-master-first="pm2">
</fo:sequence-specifier-repeating>
</fo:sequence-specification>
<fo:static-content flow-name="xsl-before">
<fo:block span="all" font-family="Times" font-size="12pt"
text-align="centered">qwert</fo:block></fo:static-content>
<fo:flow flow-name="xsl-body">
<fo:block font-size="24pt" line-height="28pt" color="red">
.......................................................
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Re: Error on colored text in paged-block
Posted by James Tauber <jt...@jtauber.com>.
> I've created a simple XSL-FO document containing a block. The textcolor
> is set to red. The created PDF-File viewed with AcrobatReader 3.0 shows
> the text in red only on the first page.
Ahh. You've found a bug. I don't think it has been fixed in the version
currently in CVS.
Basically, FOP only sets the colour when it has changed, but PDF requires
setting of the colour for each page.
James