I managed to find a way to do it except for the top and bottom 5mm
margins I can't get rid of.
Basically:
- set the top and bottom margins of the page to almost 0 (i.e. 0.05mm),
but not 0,
- declare a region-before and region-after with an extent of 0,
- explicitly set the header and footer content to an empty block.
Attached a minimal example that might be useful.
Best regards.
Le 04/09/2013 11:34, Hussein Shafie a écrit :
On 09/03/2013 05:54 PM, Maxime Bégnis wrote:
I'm formatting a document having an A4 main page layout with margins, a
header and a footer. At some point of the document I would like to
insert a new page sequence with a different size without any margin,
header or footer. I can eliminate the left and right margins without
problem but it seems impossible to remove the headers and footers from
this page sequence. This for DOCX output, it works as expected when
generating an ODT document.
Am I doing something wrong or is it a known limitation?
Note: I'm using XFC 4.4.1
An attached minimal "test.fo" file can be used to reproduce the problem.
After looking at "test.fo" (which is OK) and converting it using
latest XFC, it seems that, when targeting MS-Word, there is indeed no
way to achieve what you want.
This looks like an MS-Word bug, because
1) if you swap the page sequences: first one without any header/footer
and second one with header/footer, it works as expected;
2) nothing in XFC code indicates that a page sequence ``inherits''
some of its settings from the previous page sequence.
--
--
*NeoDoc*
*Maxime Bégnis*
[email protected]
Tél: +33 (0)4.42.52.24.20
5, rue de la Touloubre
13770 Venelles
France
http://www.neodoc.fr/
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
font-family="sans-serif" font-size="10pt"
language="en">
<fo:layout-master-set>
<fo:simple-page-master master-name="main" page-width="210mm"
page-height="297mm" margin-top="0.5in" margin-bottom="0.5in"
margin-left="16mm" margin-right="16mm">
<fo:region-body margin-bottom="16mm"
margin-top="40mm" />
<fo:region-before extent="35mm" />
<fo:region-after extent="10mm" />
</fo:simple-page-master>
<fo:simple-page-master master-name="other" page-width="210mm"
page-height="297mm" margin-top="0.05mm" margin-bottom="0.05mm"
margin-left="0mm" margin-right="0mm">
<fo:region-body margin-top="0mm" margin-bottom="0mm" />
<fo:region-before extent="0mm" />
<fo:region-after extent="0mm" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main">
<fo:static-content flow-name="xsl-region-before">
<fo:block>
Header
</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block>
Footer
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>Lorem ipsum...</fo:block>
<fo:block break-after="page"/>
<fo:block>Second Page</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="other">
<fo:static-content flow-name="xsl-region-before">
<fo:block></fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block>Lorem ipsum...</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support