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]


Page background color

2005-01-07 Thread Dennis Myrén








Hi.



I have this page with objects, some of them are positioned
at strict and exact locations(they are placed in static-content), and one is a
flowing object(a table in flow).

Now i try to do a simple thing, just setting the background
color of the entire page.

I have only succeeded to color the background of the
region-body region, where the flowing table is located.

The static content i have not succeeded to
color(static-content is mapped to region-before).

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

in static-content or flow? 



One more question; the flowing table is often flowing
through not only one but a sequence of pages.

The static content is repeated on every page where the table
is flowing.



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



I really appreciate help.



Regards,

Dennis JD Myrén

Developer

Oslo Kodebureau

Tel: (+47) 98
00 11 92

Mail: [EMAIL PROTECTED]

Web: www.oslokb.no










Re: Page background color

2005-01-07 Thread Chris Bowditch
Dennis Myrén wrote:
snip/
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.

snip/
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.

fo:simple-page-master master-name=first page-width=210mm page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=firstHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:simple-page-master master-name=rest page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=restHeader extent=20mm 
background-color=blue/
/fo:simple-page-master
fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=first 
page-position=first/
fo:conditional-page-master-reference master-reference=rest 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

then the page-sequence element references the page-sequence-master, e.g.
fo:page-sequence master-reference=all
fo:static-content flow-name=firstHeader
fo:blockThis will only appear on page 1/fo:block
/fo:static-content
fo:flow
!-- your table as usual --
/fo:flow
/fo:page-sequence
HTH!
Chris
-
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.

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=master0 page-width=1191px 
page-height=842px margin-left=0px margin-right=0px margin-top=0px 
margin-bottom=0px
  fo:region-body margin-left=638px margin-right=100px 
margin-top=32px margin-bottom=100px background-color=blue /
  fo:region-before background-color=blue /
  fo:region-after background-color=blue /
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=master0
fo:static-content flow-name=xsl-region-before
  fo:block-container position=absolute left=20px top=20px 
width=300px height=20px
fo:blockI hoped this area would be blue as well./fo:block
  /fo:block-container
/fo:static-content
fo:flow flow-name=xsl-region-bodyfo:block //fo:flow
  /fo:page-sequence
/fo:root


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:

snip/

 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.

snip/

 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.

fo:simple-page-master master-name=first page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=firstHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:simple-page-master master-name=rest page-width=210mm 
page-height=297mm
fo:region-body margin-top=20mm background-color=blue/
fo:region-before region-name=restHeader extent=20mm 
background-color=blue/
/fo:simple-page-master

fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=first 
page-position=first/
fo:conditional-page-master-reference master-reference=rest 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master

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

fo:page-sequence master-reference=all
fo:static-content flow-name=firstHeader
fo:blockThis will only appear on page 1/fo:block
/fo:static-content
fo:flow
!-- your table as usual --
/fo:flow
/fo:page-sequence

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]



Page background color

2002-06-12 Thread bluetkemeier
Hello,

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 fo:region-body supports an 
attribute background-color, so what I tried is the following:

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
  fo:simple-page-master page-height=841.9pt page-width=595.3pt 
master-name=spm_1
   fo:region-body background-color=#d9d9d9 
region-name=region-body/
  /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=spm_1
  fo:flow flow-name=region-body
   fo:blockTest/fo:block
  /fo:flow
 /fo:page-sequence
/fo:root

But in the resulting PDF none gray area does appear. It would not help to use a 
tag fo:block-container background-color=#d9d9d9, 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 fo:static-content, but then 
it is in the foreground and overwrites the pages' content.
Could anybody please give me a hint how to solve my problem?

Kind regards and thanks in advance,
Bjoern Luetkemeier



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 fo:region-body supports an attribute 
background-color, so what I tried is the following:
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
 fo:layout-master-set
  fo:simple-page-master page-height=841.9pt page-width=595.3pt 
master-name=spm_1
   fo:region-body background-color=#d9d9d9 
region-name=region-body/
  /fo:simple-page-master
 /fo:layout-master-set
 fo:page-sequence master-reference=spm_1
  fo:flow flow-name=region-body
   fo:blockTest/fo:block
  /fo:flow
 /fo:page-sequence
/fo:root
But in the resulting PDF none gray area does appear. It would not help to use a tag 
fo:block-container background-color=#d9d9d9, 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 fo:static-content, 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