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 Ryan Ackley <ry...@softartisans.com> on 2005/06/14 17:39:38 UTC

Header margins

I can't get header margins to work. 

I am using FOP 20.5. I can't figure out how to make the header margins the
same as the body margins. FOP always starts my text in the upper left corner
of the page regardless of what I set for the margin values in the header. I
also tried using padding but it didn't work. Here is the xml I am using for
the region:

<fo:simple-page-master master-name="first-page0" page-height="11.0in"
page-width="8.5in">
  <fo:region-before display-align="before" extent="1.0in"
margin-left="1.25in" region-name="title-header0" /> 
  <fo:region-body margin="1.0in 1.25in 1.0in 1.25in" /> 
  <fo:region-after display-align="after" extent="0.0in" margin-left="1.25in"
region-name="title-footer0" /> 
</fo:simple-page-master>

Then here is the content just the single word "blah"

<fo:static-content flow-name="title-header0">
  <fo:block text-align="start" linefeed-treatment="preserve"
white-space-collapse="false">
    <fo:inline font-family="Times New Roman" font-size="12.0pt"
color="#000000">blah</fo:inline> 
  </fo:block>
</fo:static-content>

Am I doing something wrong? Any ideas?

-Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Header margins

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ryan Ackley wrote:
> I can't get header margins to work. 
....
>   <fo:region-before display-align="before" extent="1.0in"
> margin-left="1.25in" region-name="title-header0" /> 

I don't think I've ever seen someone using a margin-left
in a header. It's quite possible the implementation in 0.20.5
is broken
Note that depending on the region precedence the header uses
the left and right margins of the body region (or was it the
extent of the start and end regions? Ugh, rereading the
spec...)

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Header margins

Posted by JB...@s-s-t.com.
Hi, Ryan,

Try
<fo:region-body margin-left="1in" margin-right="1in" margin-top="1in" 
margin-bottom="1.25in">

(or whatever the values should be).

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)



"Ryan Ackley" <ry...@softartisans.com> 
06/14/2005 10:39 AM
Please respond to
fop-users@xmlgraphics.apache.org


To
<fo...@xmlgraphics.apache.org>
cc

Subject
Header margins






I can't get header margins to work. 

I am using FOP 20.5. I can't figure out how to make the header margins the
same as the body margins. FOP always starts my text in the upper left 
corner
of the page regardless of what I set for the margin values in the header. 
I
also tried using padding but it didn't work. Here is the xml I am using 
for
the region:

<fo:simple-page-master master-name="first-page0" page-height="11.0in"
page-width="8.5in">
  <fo:region-before display-align="before" extent="1.0in"
margin-left="1.25in" region-name="title-header0" /> 
  <fo:region-body margin="1.0in 1.25in 1.0in 1.25in" /> 
  <fo:region-after display-align="after" extent="0.0in" 
margin-left="1.25in"
region-name="title-footer0" /> 
</fo:simple-page-master>

Then here is the content just the single word "blah"

<fo:static-content flow-name="title-header0">
  <fo:block text-align="start" linefeed-treatment="preserve"
white-space-collapse="false">
    <fo:inline font-family="Times New Roman" font-size="12.0pt"
color="#000000">blah</fo:inline> 
  </fo:block>
</fo:static-content>

Am I doing something wrong? Any ideas?

-Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org