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 "gdilem@libero.it" <gd...@libero.it> on 2006/01/25 12:31:50 UTC
problem using fop 0.91 with header and footer
Hi all
I'm using fop 0.91 and i try to create a rtf.
I cannot define header and footer and also i have problem using <fo:page-number/>
I show u what I wrote:
...
<fo:layout-master-set>
<fo:simple-page-master margin-bottom="40pt" margin-left="56.7pt" margin-right="56.7pt" master-reference="pm0" margin-top="35.4pt" master-name="pm0" page-height="841.9pt" page-width="595.3pt">
<fo:region-body margin-bottom="40pt" margin-top="40pt" region-name="body"/>
<fo:region-before extent="40pt" overflow="visible" region-name="header"/>
<fo:region-after extent="40pt" overflow="visible" region-name="footer"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="pm0">
<fo:static-content flow-name="header" >
<fo:block end-indent="0pt" line-height="14pt" orphans="2" start-indent="0pt" text-indent="0pt" widows="2">
<fo:external-graphic src="C:/jakarta-tomcat-5.5.7/webapps/admin_console/images/printHeader.png" content-height="60%" content-width="60%" />
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer" font="italic 10pt Times">
<fo:block text-align="end">
<fo:inline font-size="6pt">
<fo:page-number />
</fo:inline>
</fo:block>
</fo:static-content>
...
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: problem using fop 0.91 with header and footer
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I've just fixed a bug that caused the RTF handler to miss the before and
after regions if they don't have the standard names:
http://svn.apache.org/viewcvs?rev=372214&view=rev
If you can't use FOP Trunk from Subversion, you can use the standard
names ("xsl-region-before" and "xsl-region-after") for the
static-content elements to still make it work.
"fo:page-number" works fine for me.
On 25.01.2006 12:31:50 gdilem\@libero\.it wrote:
> Hi all
> I'm using fop 0.91 and i try to create a rtf.
> I cannot define header and footer and also i have problem using <fo:page-number/>
>
> I show u what I wrote:
>
> ...
>
> <fo:layout-master-set>
> <fo:simple-page-master margin-bottom="40pt" margin-left="56.7pt" margin-right="56.7pt" master-reference="pm0" margin-top="35.4pt" master-name="pm0" page-height="841.9pt" page-width="595.3pt">
> <fo:region-body margin-bottom="40pt" margin-top="40pt" region-name="body"/>
> <fo:region-before extent="40pt" overflow="visible" region-name="header"/>
> <fo:region-after extent="40pt" overflow="visible" region-name="footer"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="pm0">
> <fo:static-content flow-name="header" >
> <fo:block end-indent="0pt" line-height="14pt" orphans="2" start-indent="0pt" text-indent="0pt" widows="2">
> <fo:external-graphic src="C:/jakarta-tomcat-5.5.7/webapps/admin_console/images/printHeader.png" content-height="60%" content-width="60%" />
> </fo:block>
> </fo:static-content>
> <fo:static-content flow-name="footer" font="italic 10pt Times">
> <fo:block text-align="end">
> <fo:inline font-size="6pt">
> <fo:page-number />
> </fo:inline>
> </fo:block>
> </fo:static-content>
> ...
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org