Re: background image? offset of page header and footer?
Hussein Shafie <[email protected]>
| Newsgroups | gmane.text.xml.xfc.general |
|---|---|
| Message-ID | <[email protected]> |
Frank H. wrote:
>
> Attached you'll find a sample rtf with a "background image feature".
> Since last week, we have been trying to get this to work but with no
> success.
>
> Can you please advice how we can position the "whole page background
> image" and put a heading (title) on top. Both items should be located in
> the header section.
Sorry but XMLmind XSL-FO Converter does not support the background-image
property. This limitation is documented in
http://www.xmlmind.com/foconverter/conformance.html (search for
"background-image").
>
> Our second question is, how one can set the "Header from Top" and
> "Footer from Bottom" property within the xsl.
> With any setting we always ended up with MS-Words' default page-margins.
>
This is standard XSL-FO. See the fo:simple-page-master child elements
and attributes found in attached sample XSL-FO files. Notice how the
size and position of the headers and footers vastly differ in the RTF
files generated out of sample1.fo and sample2.fo.
sample1.fo
---
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-bottom="1.5cm" margin-left="1.5cm"
margin-right="1.5cm" margin-top="1.5cm"
master-name="all-pages" page-height="29.7cm"
page-width="21cm">
<fo:region-body border-style="solid" border-width="1pt"
margin-bottom="10pt + 0.5cm" margin-top="0.5cm"
padding="7.5pt" />
<fo:region-before display-align="before" extent="0.5cm" />
<fo:region-after display-align="after" extent="0.5cm" />
</fo:simple-page-master>
</fo:layout-master-set>
...
---
sample2.fo
---
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-bottom="5.5cm" margin-left="1.5cm"
margin-right="1.5cm" margin-top="5.5cm"
master-name="all-pages" page-height="29.7cm"
page-width="21cm">
<fo:region-body border-style="solid" border-width="1pt"
margin-bottom="10pt + 5.5cm" margin-top="5.5cm"
padding="7.5pt" />
<fo:region-before display-align="before" extent="5.5cm" />
<fo:region-after display-align="after" extent="5.5cm" />
</fo:simple-page-master>
</fo:layout-master-set>
...
---
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support