W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2002

Re: margin-left not correct on printed output

From: Magnus Sj÷berg <magnus.sjoberg@secode.com>
Date: Mon, 14 Oct 2002 11:41:42 +0200
Message-ID: <3DAA9156.5AE6589F@secode.com>
To: Gary Jones <garyj@gjones1.demon.co.uk>
CC: www-xsl-fo@w3.org
This is because your fo:block is not inside the region-body.

You can skip the region-name attribute of the
fo:region-body, and if you want your block inside that
region, use <fo:flow flow-name="xsl-region-body"> to
reference it.

Given your page sequence below, there is no telling where
your flow will end up ;-)

hth///
	Magnus

Gary Jones wrote:
> 
> Hi guys
> 
> I've got the following FO code.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> 
>     <fo:layout-master-set>
>         <fo:simple-page-master master-name="Letter" page-height="297mm"
> 
> page-width="210mm"
> 
> margin-left="25mm"
> 
> margin-right="25mm" >
>             <fo:region-body region-name="body" />
>         </fo:simple-page-master>
>     </fo:layout-master-set>
> 
>     <fo:page-sequence master-reference="Letter">
>         <fo:flow flow-name="body">
>             <fo:block>Should be 25mm from left edge of paper.</fo:block>
>         </fo:flow>
>     </fo:page-sequence>
> </fo:root>
> 
> When printed using Acrobat the resulting printout does not have a 25mm
> margin. I've tried various margin widths and only 0mm works as expected.
> 
> How does this work? Am I doing something wrong? I've also tried various
> adjustment settings from the Adobe Acrobat print dialog with no success.
> 
> Thanks
> Gary

Received on Monday, 14 October 2002 05:39:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT