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: RE: Problem with cover


Title: Problem with cover

This is probably a hack, but have you tried using negative margin values on the region-body? Here’s what I do (works with xep):

 

  <fo:region-body

margin-bottom="-.02in"

margin-top="-.02in"

margin-left="-.02in"

margin-right="-.02in"

background-repeat="no-repeat"

background-image="url({$motive.component.cover.path})">

 

In addition, if you use a background image like that and are using xep, there are some extensions you can use to control the size of the background image:

 

<xsl:if

  test="$xep.extensions != '0'">

  <xsl:attribute name="rx:background-content-width">8.54in<!--  <xsl:value-of select="$page.width"/> --></xsl:attribute>

  <xsl:attribute name="rx:background-content-height"><!--  <xsl:value-of select="$page.height"/> -->11.04in</xsl:attribute>

</xsl:if>

  </fo:region-body>

 

David

 

 

From: WilliamFLawrence@eaton.com [mailto:WilliamFLawrence@eaton.com]
Sent: Friday, December 10, 2010 2:33 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Problem with cover

 

Hi All,

I’m having a bit of trouble with custom covers.  I’ve trying to display an 8.5” x 11” graphic on the cover that essentially takes up the entire page.  It displays with the top and bottom aligned, but it’s indented to the right.  The following is in my customization layer.

<xsl:template name="front.cover">
   <xsl:call-template name="page.sequence">
     <xsl:with-param name="master-reference">front-cover</xsl:with-param>
     <xsl:with-param name="content">
       <fo:block alignment-adjust="before-edge">
         <fo:external-graphic src="url(book_cover_deploy.png)"/>
           </fo:block>
       </xsl:with-param>
     </xsl:call-template>
</xsl:template>
 
 
<xsl:template name="user.pagemasters">
    <fo:simple-page-master master-name="front-cover"
     
      page-width="{$page.width}"
     
      page-height="{$page.height}"
      margin-top="0pt"
      margin-bottom="0pt"
      margin-left="0pt"
      margin-right="0pt">
    
     
<fo:region-body      

        margin-top="0pt"
        margin-bottom="0pt"
        margin-left="0pt"
        margin-right="0pt"/>

    </fo:simple-page-master>
  </xsl:template>
 

Thanks in advance.

Bill Lawrence



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