OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Background image in header


Dear list,

I want to place a background image in the header of my pdf-file.

I managed to put a image in the header and the text in front of it,
but the image is clipped at the top. I first thought, that this is due
to the region.before.extent-parameter not being big enough, but I set
region.before.extent to 50mm which ist definitely a lot greater than
the height of my background image, with no effect.
I also tried to reduce the space for page.margin.top and increasing
the space for body.margin.top, but this didn't work out either.
I already set the padding for the header table cell to 0 everywhere.

Any ideas what I'm doing wrong?

Thats the header.content-template of my customization-layer:

<xsl:template name="header.content">
(...)
<xsl:when test="$sequence='even' and $position='right'" >
  <xsl:attribute
name="background-image">resources/header_even_innen.png</xsl:attribute>
  <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>
  <xsl:attribute name="padding-before">0cm</xsl:attribute>
  <xsl:attribute name="padding-after">0cm</xsl:attribute>
  <xsl:attribute name="padding-start">0cm</xsl:attribute>
  <xsl:attribute name="padding-end">0cm</xsl:attribute>
  <xsl:attribute name="padding-top">0cm</xsl:attribute>
  <xsl:attribute name="padding-bottom">0cm</xsl:attribute>
  <xsl:attribute name="padding-left">0cm</xsl:attribute>
  <xsl:attribute name="padding-right">0cm</xsl:attribute>
  <xsl:attribute name="background-position-horizontal">right</xsl:attribute>
  <xsl:attribute name="background-position-vertical">bottom</xsl:attribute>
  <xsl:text>Text Text Text</xsl:text>
</xsl:when>
(...)
</xsl:template>

I'm using docbook-xsl 1.72.0, xsltproc and fop 0.93.

Thank you a lot for your help in advance.

Regards,
Daniela


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]