Question abou pagination

Here should go questions about transforming XML with XSLT and FOP.
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Question abou pagination

Post by Le Basque »

Hi,

I have definition of page :

Code: Select all


 <fo:simple-page-master master-name="first_page" 
page-height="297mm" page-width="210mm"
margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="0mm">
<fo:region-body/>
<fo:region-before background-color="#EFEFEF"
region-name="header" extent="7mm" display-align="after"/>
<fo:region-after background-color="blue"
region-name="footer" extent="1mm" display-align="before"/>
<fo:region-start background-color="red" region-name="start" extent="1mm"/>
<fo:region-end background-color="yellow" region-name="end" extent="10mm"/>
</fo:simple-page-master>
When i publish first page it is A4
This is an A4 page but above region-before I have 10mm while margin-top = 0?
It's the same for other margin?
thank you
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Question abou pagination

Post by Radu »

Hi,

I cannot reproduce the issue with a small XSL-FO document like this one:

Code: Select all

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first_page"
page-height="297mm" page-width="210mm"
margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="0mm">
<fo:region-body region-name="body"/>
<fo:region-before background-color="#EFEFEF"
region-name="header" extent="7mm" display-align="after"/>
<fo:region-after background-color="blue"
region-name="footer" extent="1mm" display-align="before"/>
<fo:region-start background-color="red" region-name="start" extent="1mm"/>
<fo:region-end background-color="yellow" region-name="end" extent="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first_page">
<fo:static-content flow-name="header">
<fo:block text-align="start" font-weight="bold"> Basic Font Attributes - Font
Weight </fo:block>
</fo:static-content>
<fo:flow flow-name="body">
<fo:block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
It's possible that the top indent comes from another block which is in front of the current one.
Maybe you should try coming up with a small XSL-FO to reproduce the problem and write about this to a specialized XSL-FO mailing list.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Le Basque
Posts: 147
Joined: Sat Oct 19, 2013 8:21 am

Re: Question abou pagination

Post by Le Basque »

Hi Radu,

The problem exist where i print document, with the viewer Adobe it is OK, but when i print le document i have margin
The margin is in A4 page so measurements are false ?

thank you
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Question abou pagination

Post by Radu »

Hi,

I really don't know, maybe the printer has some minimum margins configured for a page or maybe the printer has some hardware functional limitations as to how close the printed text can be to the top of the page.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply