Re: newbie - Minimum Block Heights

2002-04-15 Thread Andy Bowes



Hi,

Thanks for confirming that I am not going mad. 
:)

Unfortunately the padding at the bottom will not 
really achieve the result I am after. I want to allow the block to grow 
with it's content but ensure that it is AT LEAST a certain size.

It look like I will have to use a table with a 
'hidden' block which uses the padding that you have specified. It's a bit 
of a nasty fix.

Surely someone else must have come across this 
before.

Andy



  - Original Message - 
  From: 
  Guillaume Patin 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 1:58 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  You're right !!
  
  I've tried with the padding-bottom attribute, and 
  it does work, but it may not fit your needs...
  
  just try this :
  fo:block padding-bottom="15cm" 
  background-color="silver"
  
  friendly,
  Guillaume
  
- Original Message ----- 
From: 
Andy Bowes 

To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 2:26 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi Guillaume

I have tried using just the height attribute in 
the block e.g.


?xml version="1.0"?fo:root 
xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="1cm" 
margin-bottom="1cm" margin-left="2cm" 
margin-right="2cm"fo:region-body 
margin-top="1.5cm" 
margin-bottom="2cm"/fo:region-before 
extent="1.5cm"/fo:region-after 
extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
master-name="A4" 
initial-page-number="1"fo:static-content 
flow-name="xsl-region-before"/fo:static-contentfo:static-content 
flow-name="xsl-region-after"/fo:static-contentfo:flow 
flow-name="xsl-region-body"fo:blockBefore 
Block/fo:blockfo:block height="15cm" 
background-color="silver"This is the block 
contents/fo:blockfo:blockAfter 
Block/fo:blockfo:block 
id="end-of-doc"//fo:flow/fo:page-sequence/fo:root


I would expect to see a pretty large middle block with a grey 
background but this central block just fits around the enclosed text. 
(See attached PDF file)

I am sure that I must be doing something obvoiusly wrong but I can't 
see it.

p.s. I am using FOP 0.18.1

Any pointers will be very useful.

Thanks Andy




  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 11:26 
  AM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  why don't you simply specify the 'height' 
  attribute ? 
  
- Original Message - 
From: 
Andy 
Bowes 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 12:13 
PM
Subject: newbie - Minimum Block 
Heights

Hi

I am new to FOP and have hit a stumbling 
block pretty quickly. I need to be able to set the minimum heigh 
of a block in the docuement and from the documentation though that this 
could be acheived using the following entries in the FO 
file:

block min-height="2cm"Block 
Contents/block

However I get the following warning when I 
attempt to transform this into a PDF:

"WARNING: property 'min-height' 
ignored"

What am I doing wrong here ?

Thanks

Andy


Re: newbie - Minimum Block Heights

2002-04-15 Thread Andy Bowes



Yeah,

The height attribute works on an fo:table 
but not on a block. Is that a bug ?

Andy


  - Original Message - 
  From: 
  Guillaume Patin 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 2:26 
PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  did you try to create a table with the specified 
  height ?
  
- Original Message - 
From: 
Andy Bowes 

To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 3:14 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi,

Thanks for confirming that I am not going mad. 
:)

Unfortunately the padding at the bottom will 
not really achieve the result I am after. I want to allow the block to 
grow with it's content but ensure that it is AT LEAST a certain 
size.

It look like I will have to use a table with a 
'hidden' block which uses the padding that you have specified. It's a 
bit of a nasty fix.

Surely someone else must have come across this 
before.

Andy



  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  Sent: Monday, April 15, 2002 1:58 
  PM
  Subject: Re: newbie - Minimum Block 
  Heights
  
  You're right !!
  
  I've tried with the padding-bottom attribute, 
  and it does work, but it may not fit your needs...
  
  just try this :
  fo:block padding-bottom="15cm" 
  background-color="silver"
  
  friendly,
  Guillaume
  
- Original Message - 
    From: 
    Andy 
Bowes 
To: [EMAIL PROTECTED] 
Sent: Monday, April 15, 2002 2:26 
PM
Subject: Re: newbie - Minimum Block 
Heights

Hi Guillaume

I have tried using just the height 
attribute in the block e.g.


?xml version="1.0"?fo:root 
xmlns:fo="http://www.w3.org/1999/XSL/Format"fo:layout-master-setfo:simple-page-master 
master-name="A4" page-height="29.7cm" page-width="21cm" margin-top="1cm" 
margin-bottom="1cm" margin-left="2cm" 
margin-right="2cm"fo:region-body 
margin-top="1.5cm" 
margin-bottom="2cm"/fo:region-before 
extent="1.5cm"/fo:region-after 
extent="2cm"//fo:simple-page-master/fo:layout-master-setfo:page-sequence 
master-name="A4" 
initial-page-number="1"fo:static-content 
flow-name="xsl-region-before"/fo:static-contentfo:static-content 
flow-name="xsl-region-after"/fo:static-contentfo:flow 
flow-name="xsl-region-body"fo:blockBefore 
Block/fo:blockfo:block height="15cm" 
background-color="silver"This is the block 
contents/fo:blockfo:blockAfter 
Block/fo:blockfo:block 
id="end-of-doc"//fo:flow/fo:page-sequence/fo:root


I would expect to see a pretty large middle block with a grey 
background but this central block just fits around the enclosed 
text. (See attached PDF file)

I am sure that I must be doing something obvoiusly wrong but I 
can't see it.

p.s. I am using FOP 0.18.1

Any pointers will be very useful.

Thanks Andy




  - Original Message - 
  From: 
  Guillaume 
  Patin 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, April 15, 2002 
  11:26 AM
  Subject: Re: newbie - Minimum 
  Block Heights
  
  why don't you simply specify the 'height' 
  attribute ? 
  
- Original Message - 
From: 
Andy 
Bowes 
To: [EMAIL PROTECTED] 

Sent: Monday, April 15, 2002 
12:13 PM
Subject: newbie - Minimum Block 
Heights

Hi

I am new to FOP and have hit a 
stumbling block pretty quickly. I need to be able to set the 
minimum heigh of a block in the docuement and from the documentation 
though that this could be acheived using the following entries in 
the FO file:

block min-height="2cm"Block 
Contents/block

However I get the following warning 
when I attempt to transform this into a PDF:

"WARNING: property 'min-height' 
ignored"

What am I doing wrong here 
?

Thanks

Andy