« Return to Thread: Setting background image in fo and html output

Re: Setting background image in fo and html output

by AlChuck :: Rate this Message:

Reply to Author | View in Thread

There is a way, it's described in Bob Stayton's DocBook XSL - The Complete Guide:

http://www.sagehill.net/docbookxsl/PageDesign.html

I haven't tried it yet for the body part of the page masters but it should work the same as with the area-before and area-after sections.

I'm curious, if you didn't do the header and footer background images as described in this chapter, how did you do it?


Antti Karanta wrote:
   No, I didn't, but I have no problem w/ header / footer background  
images. They're working fine. What I now need is a page background image.

   I dug aound a bit and it seems that to support background images I need  
to use custom page masters. This would not be necessary if  
fo/pagesetup.xsl (template setup.pagemasters) would e.g. have an attribute  
set or call a user overrideable template I could use to insert these  
attributes into fo:region-body (in a fo:simple-page-master):

background-image="url(logogray.png)"
background-position-horizontal="center"
background-position-vertical="center"
background-repeat="no-repeat"

   Should I file an enhancement request?

   Or did I miss something and there actually is a way to influence the  
default page masters?

        .::Antti::.

 « Return to Thread: Setting background image in fo and html output