Next in thread → Next in month →

Re: [docbook-apps] Help with aligning company logo and copyright text in PDF footer

From
"Cob Rtayton"
Date
2005-07-13T06:57:44+00:00
ID
0a3401c58778$1ee5a940$6400a8c0@toshiro
Thread
Re: [docbook-apps] Help with aligning company logo and copyright text in PDF footer
Hi,

I think you are seeing your logo graphic 
stacked on top of your copyright text.  That's because your copyright text 
is inside an fo:block, and you cannot stack fo:block's side by side.  Your 
graphic is in the fo:block that wraps all the content generated by the 
'footer.table' templat. So the fo:block you put around your copyright text 
generates a line break.  You should wrap both the graphic and the text 
inside one fo:block that sets your properties.  That block will then extend 
across the page.  If you want to add space between the logo and the text, 
then add an fo:leader between them, something like <fo:leader 
leader-length="12pt"/>.

 

You can also add a rule that extends across 
the page by putting a border on that fo:block, something like:

 

  border-top="0.5pt solid 
black"

 

The reason user.footer.navigation doesn't 
work is because that template is only used in the HTML stylesheet.

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

  
----- Original Message ----- 

  
From: 
  Supun Gunasena 

  
To:  
  

  
Sent: Tuesday, July 12, 2005 5:41 
PM

  
Subject: [docbook-apps] Help with 
  aligning company logo and copyright text in PDF footer

  

  

  
Hi,

  
 

  
I have reviewed the docs thoroughly, but can’t seem to 
  align my company logo and the text “Copyright 2005” so that they are 
  horizontally aligned in the footer. I also want to use a horizontal line, but 
  this only appears in user.footer.navigation. For 
  example:

  
 

  
<LOGO>   Copyright 2005  My 
  company.

  
 

  
This is the code which appears in the XSL stylesheet:

  
 

  
<!-- Footers! 
  -->

  
                        
  <xsl:template 
  name="footer.table">

  
                                                
  <xsl:choose>

  
                                                            
  <xsl:when 
  test="$pageclass = 'titlepage' and 
  $sequence='first'">

  
                                                                                    
  <!-- no, book titlepages have no headers at all 
  -->

  
                                                            
  </xsl:when>

  
                                                
                
  <xsl:otherwise>

  
            
                            
  <fo:external-graphic height="7.3pt" scaling="uniform" 
  src="url(images/orionlogosmall.png)" 
  width="2.55pt">

  
                        
                  
  </fo:external-graphic>

  
                                                                                                
  

  
                                                                                                
  

  
                                                            
  

  
                                    
  <fo:block 
  hyphenate="false" line-height="10.3pt"  
  space-before="-15.0pt" 
  margin-left="61.0pt">

  
                                                
  <fo:inline 
  font-family="Arial, sans-serif" 
  font-size="8.0pt">

  
Copyright My company 
  International Limited.  All Rights 
  Reserved. 

  
                                                
  </fo:inline>

  
                                                            
  </fo:block>

  
                                                
      </xsl:otherwise>

  
                                                
  </xsl:choose>

  
</xsl:template>

  
 

  
 

  
Thanks for your help,

  
 

  
 

  
Supun Gunasena

  
 

  
 

  
 

  

  
    
    

      
        
Supun Gunasena
Technical Writer 

      
        
 

        

        
          
          

            
              
Orion 
              Systems International
Excellence 
              in Health Innovation

            
              

        

    

      
        
Skype: 
        skypeID Phone: +64 9 6380600 Fax: +64 9 
        6380699 Email: 
2nd 
        Floor, Orion House, cnr Enfield & Mary St, Mt Eden, PO Box 8273, 
        Auckland, New Zealand. http://www.orionhealth.com

        
This 
        e-mail and any attachments are intended only for the person to whom it 
        is addressed and may contain privileged, proprietary, or other data 
        protected from disclosure under applicable law. If you are not the 
        addressee or the person responsible for delivering this to the addressee 
        you are hereby notified that reading, copying or distributing this 
        transmission is prohibited. If you have received this e-mail in error, 
        please telephone us immediately and remove all copies of it from your 
        system. Thank you for your co-operation.
Next in thread → Next in month →