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: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:page-sequence master-name="A4" initial-page-number="1">
  <fo:static-content flow-name="xsl-region-before">
  <fo:static-content flow-name="xsl-region-after">
  <fo:flow flow-name="xsl-region-body">
   <fo:block>Before Block</fo:block>
   <fo:block height="15cm" background-color="silver">This is the block contents</fo:block>
   <fo:block>After Block</fo:block>
   <fo:block id="end-of-doc"/>
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 -----
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
Sent: Monday, April 15, 2002 12:13 PM
Subject: newbie - Minimum Block Heights

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 ?

Attachment: Test2.pdf
Description: Adobe PDF document

Reply via email to