RE: Page background color

2005-01-10 Thread Dennis Myrén
I finally achieved the layout I wanted.
Thank you for your help.

I just needed to know a bit more about how the regions work.

(I use PDF as the output format, and use points as units rather than pixels as 
I did in the example.)



-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: 8. januar 2005 21:04
To: [EMAIL PROTECTED]
Subject: Re: Page background color

Dennis Myrén wrote:
> However, I started trying just to get the background color to be applied 
> across all regions, and I have not succeeded.
> 
> Please tell me what I am doing wrong with this simple document.
> Only the region-body region gets blue background color.

Your region-before and -after have no extent, i.e. they get an
extent of zero. You'll have to defione a region-start and -end
as well.

Which output format are you using? Measurements in px should not
be used except for bitmapped output formats.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page background color

2005-01-08 Thread J.Pietschmann
Dennis Myrén wrote:
However, I started trying just to get the background color to be applied across 
all regions, and I have not succeeded.
Please tell me what I am doing wrong with this simple document.
Only the region-body region gets blue background color.
Your region-before and -after have no extent, i.e. they get an
extent of zero. You'll have to defione a region-start and -end
as well.
Which output format are you using? Measurements in px should not
be used except for bitmapped output formats.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Page background color

2005-01-07 Thread Dennis Myrén
[ATT. Chris]

Hi Chris and thank you very much for your efforts in helping me out.
However, I started trying just to get the background color to be applied across 
all regions, and I have not succeeded.

Please tell me what I am doing wrong with this simple document.
Only the region-body region gets blue background color.

http://www.w3.org/1999/XSL/Format";>
  

  
  
  

  
  

  
I hoped this area would be blue as well.
  


  



Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 7. januar 2005 15:02
To: [EMAIL PROTECTED]
Subject: Re: Page background color

Dennis Myrén wrote:



> Is there a way to set the background color of the entire page, 
> regardless of whether objects are placed

No, you cant set background color on the entire page. But you can set it on 
region-*. So in your case, as well as setting background color on region-body 
you will need to set it on region-before too.



> I would like not to repeat that static content, but rather have it 
> rendered only at the first page.

This is straigt forward to achieve. You will need to create two 
fo:simple-page-master objects, one with a region-before defined and the other 
without. Then create a fo:page-sequence-master which uses defines which 
simple-page-master is used based on page-position. The fo:page-sequence then 
references the page-sequence-master. E.g.


















then the page-sequence element references the page-sequence-master, e.g.



This will only appear on page 1






HTH!

Chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Page background color

2005-01-07 Thread Chris Bowditch
Dennis Myrén wrote:

Is there a way to set the background color of the entire page, 
regardless of whether objects are placed
No, you cant set background color on the entire page. But you can set it on 
region-*. So in your case, as well as setting background color on region-body 
you will need to set it on region-before too.


I would like not to repeat that static content, but rather have it 
rendered only at the first page.
This is straigt forward to achieve. You will need to create two 
fo:simple-page-master objects, one with a region-before defined and the other 
without. Then create a fo:page-sequence-master which uses defines which 
simple-page-master is used based on page-position. The fo:page-sequence then 
references the page-sequence-master. E.g.

















then the page-sequence element references the page-sequence-master, e.g.


This will only appear on page 1





HTH!
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Page background color

2002-06-12 Thread Oleg Tkachenko
[EMAIL PROTECTED] wrote:
I am using fop-0.20.3 to generate some PDF documents. Now I wish to get a gray 
background for the document's hole pages, independent from the size of
their content.
According to the XSL-FO specification the tag  supports an attribute 
"background-color", so what I tried is the following:
http://www.w3.org/1999/XSL/Format";>
 
  
   
  
 
 
  
   Test
  
 

But in the resulting PDF none gray area does appear. It would not help to use a tag 
, because the
document's content may take several pages, so the containers height would be 
unknown.
I also tried to place a gray block-container as , but then 
it is in the foreground and overwrites the pages' content.
Could anybody please give me a hint how to solve my problem?
Afaik background-color in regions is not supported yet :(
See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3329
--
Oleg Tkachenko
Multiconn International Ltd, Israel