|
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-set> <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:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-name="A4" initial-page-number="1"> <fo:static-content flow-name="xsl-region-before"> </fo:static-content> <fo:static-content flow-name="xsl-region-after"> </fo:static-content> <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"/> </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
|
Test2.pdf
Description: Adobe PDF document
