You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Luke Shannon <ls...@futurebrand.com> on 2005/04/12 21:07:56 UTC

image running off the page

Hi All;

I posted some questions about this last week and I thought that I had
received a solution from Patrick. However the problem is back and I'm stuck.

To review my problem users can design a  PDF to be created that has several
images stack upon one another. In cases where they stack several big images
on top of one another, instead on creating a new page the bottom image ends
up running off the first page and crowding the footer.

I don't know how to proceed. I need a system of dealing with this. Either
the page that gets generated is longer or the extra images go onto a second
page.

Can anyone help?

Here is the code to generate the page, below this is the xsl:fo generated
for one of the problem pages:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<!-- configure the page attributes -->
<fo:layout-master-set>
<fo:simple-page-master master-name="simple" page-height="11in"
page-width="8.5in" margin-top="2cm" margin-left="2cm" margin-right="2cm">
<fo:region-body region-name="xsl-region-body" display-align="center"
margin-top="2.67cm" margin-bottom="3cm"/>
<fo:region-before region-name="xsl-region-before" display-align="before"
extent="2.67cm"/>
<fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<!-- ouput the content -->
<fo:page-sequence master-reference="simple" initial-page-number="1">
<!-- header -->
<fo:static-content flow-name="xsl-region-before">
<fo:external-graphic
src="url('file:///usr/tomcat{$site_name}/images/client/topbanner/arc_pdf_top
_panel.gif')" height="2.67cm" width="20cm" scaling="uniform"/>
</fo:static-content>
<!-- footer -->
<fo:static-content flow-name="xsl-region-after">
<fo:table width="19cm">
<fo:table-column column-width="16cm"/>
<fo:table-column column-width="3cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" start-indent="1em" font-size="6pt"
text-align="left">
note: The colors represented on this PDF, when output to a printer, will not
 match the proper PANTONE or other color breakdown specified in these
guidelines.
not attempt to make a visual match from this printout. Use only the proper
PANTONE swatch or specified equivalents for CMYK or RGB.
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block font-family="Helvetica" start-indent="1em" font-size="8pt"
text-align="right">
: <fo:page-number/> of <fo:page-number-citation
ref-id="last-page"/><fo:block id="last-page"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<!-- body -->
<fo:flow flow-name="xsl-region-body" font-family="Helvetica"
start-indent="1em" font-size="8pt">
<xsl:call-template name="draw_contents"/>
</fo:flow>
</fo:page-sequence>
</fo:root>

XSL-FO from a generated page:
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master margin-right="2cm" margin-left="2cm" margin-top="2cm"
page-width="8.5in" page-height="11in" master-name="simple">
<fo:region-body margin-bottom="3cm" margin-top="2.67cm"
display-align="center" region-name="xsl-region-body"/>
<fo:region-before extent="2.67cm" display-align="before"
region-name="xsl-region-before"/>
<fo:region-after extent="2.5cm" region-name="xsl-region-after"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence initial-page-number="1" master-reference="simple">
<fo:static-content flow-name="xsl-region-before">
<fo:external-graphic scaling="uniform" width="20cm" height="2.67cm"
src="url('file:///usr/tomcat/arcapita/images/client/topbanner/arc_pdf_top_pa
nel.gif')"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:table width="19cm">
<fo:table-column column-width="16cm"/><fo:table-column column-width="3cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block text-align="left" font-size="6pt" start-indent="1em"
font-family="Helvetica">
note: The colors represented on this PDF, when output to a printer, will not
match the proper PANTONE or other color breakdown specified in these
guidelines. Do not attempt to make a visual match from this printout. Use
only the proper PANTONE swatch or specified equivalents for CMYK or RGB.
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block text-align="right" font-size="8pt" start-indent="1em"
font-family="Helvetica"> Page: <fo:page-number/> of <fo:page-number-citation
ref-id="last-page"/>
<fo:block id="last-page"/></fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:static-content>
<fo:flow font-size="8pt" start-indent="1em" font-family="Helvetica"
flow-name="xsl-region-body">
<fo:block xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<fo:table width="100%" table-layout="fixed">
<fo:table-column column-width="14.3cm"/>
<fo:table-column column-width="0.4cm"/>
<fo:table-column column-width="4.3cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block>
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/150dpi_3_0_01
.gif)" width="14cm" scaling="uniform" />
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/150dpi_3_0_02
.gif)" width="14cm" scaling="uniform" />
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/)"
width="14cm" scaling="uniform" />
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/)"
width="14cm" scaling="uniform" />
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/)"
width="14cm" scaling="uniform" />
<fo:external-graphic
src="url(file:///usr/tomcat/arcapita/tools/brandlink/Section_3/)"
width="14cm" scaling="uniform" />
</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block/>
</fo:table-cell>
<fo:table-cell>
<fo:block font-size="10px" space-after="0.40cm" font-weight="bold">Arcapita
Stationery<fo:block font-size="8px" space-after="0.40cm"
font-weight="normal">Section: 3.0</fo:block></fo:block>
<fo:block font-weight="normal">Stationery reaches many audiences and is an
important part of our brand identity. Shown to the left are sample items
from the Arcapita stationery set. ^M^M
set includes:^M - Standard Letterhead^M - Continuation Sheet^M - Standard
Envelopes^M - Large Envelopes^M - Themed Envelopes^M - Business Card^M -
Press Kit Folder ^M - Monarch Letterhead and Envelope^M - Fax Sheet^M -
Compliments Card^M ^M Detailed layout specifications for these items are
provided as downloadable PDFs within this section. </fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>


Luke Shannon | Software Developer
FutureBrand Toronto

207 Queen's Quay, Suite 400
Toronto, ON, M5J 1A7
416 642 7935 (office)



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by Luke Shannon <ls...@futurebrand.com>.
Hi Clay;

Tried making them the same. Still running off the page...

I don't have any keeps, although I'm not sure what a keep is. All the code
was written by me so I think I would know (unless they are by default
somewhere).

What I don't understand is why it is not creating a new page. It does for
text, why not an image?

Luke

----- Original Message ----- 
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Tuesday, April 12, 2005 4:39 PM
Subject: Re: image running off the page


> On Apr 12, 2005, at 1:13 PM, Luke Shannon wrote:
> > Hi Clay;
> >
> > I made the following changes:
>
> I would try making them the same:
>
> <fo:simple-page-master master-name="simple" page-height="11in"
> page-width="8.5in" margin-top="2cm" margin-bottom="1cm"
> margin-left="2cm"
> margin-right="2cm">
> <fo:region-body region-name="xsl-region-body" display-align="center"
> margin-top="2.67cm" margin-bottom="2.5cm"/>
> <fo:region-before region-name="xsl-region-before" display-align="before"
> extent="2.67cm"/>
> <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
> </fo:simple-page-master>
>
> Do you have any keeps? It could be that some sort of keep-together
> attribute might be getting in the way.
>
> > Seems the image is still running off the page. Is there some way I can
> > detect if this will happen? I think I could leave to the users to
> > recognize
> > a group of images are too large for a page. They could have an option
> > to
> > choose a legal size page. But this is a lot of work and my manager may
> > not
> > like the idea. I would love to make the current system smart enough to
> > manage this.
> >
> > Luke
>
> I remember my previous boss always wanted the programmer to do the
> work, and not the end user... :-)
>
> Web Maestro Clay
> -- 
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by Luke Shannon <ls...@futurebrand.com>.
I was thinking something similar to this myself. I do have the dimensions of
each image in the XML document I'm processing.

I can do some calculations to determine if an image should go on the next
page or not.

Thanks for the feedback,

Luke

----- Original Message ----- 
From: <JB...@s-s-t.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Wednesday, April 13, 2005 11:24 AM
Subject: Re: image running off the page


> The only thought I've had on this subject is to add up the heights of the
> images (with a fudge factor for padding - say 25%) and move images that
> exceed the page height to the next page (perhaps by wrapping them in a new
> block). So, if you're usable page height is nine inches, you'd end up with
> something like this:
>
> <fo:block>
>   <fo:external-graphic height="1">
>   <fo:external-graphic height="2">
>   <fo:external-graphic height="2">
>   <fo:external-graphic height="2">
> </fo:block>
> <fo:block break-before="page">
>   <!-- This one kicked the to next block because it was
>        too big for what was left of the previous page -->
>   <fo:external-graphic height="3">
>   <fo:external-graphic height="1">
>   <fo:external-graphic height="1">
>   <!-- and so on -->
> </fo:block>
>
> That kind of thing is nasty to implement in XSL, but it might work. Also,
> I have no idea of what other content you might be managing with the
> images, so this solution could rapidly become very complex. Still, it's a
> thought. Maybe it'll trigger a better thought on your part.
>
> Jay Bryant
> Bryant Communication Services
> (presently consulting at Synergistic Solution Technologies)
>
>
>
>
> "Luke Shannon" <ls...@futurebrand.com>
> 04/13/2005 10:08 AM
> Please respond to
> fop-users@xmlgraphics.apache.org
>
>
> To
> <fo...@xmlgraphics.apache.org>
> cc
>
> Subject
> Re: image running off the page
>
>
>
>
>
>
> Ok. I have created a legal option for clients creating PDF files with long
> images. But one of them still doesn't fit. The images runs through the
> footer and off the page on legal size. I don't know what to do from here.
>
> Any suggestions would be welcomed.
>
> Thanks,
>
> Luke
>
> ----- Original Message ----- 
> From: "The Web Maestro" <th...@gmail.com>
> To: <fo...@xmlgraphics.apache.org>
> Sent: Tuesday, April 12, 2005 4:39 PM
> Subject: Re: image running off the page
>
>
> > On Apr 12, 2005, at 1:13 PM, Luke Shannon wrote:
> > > Hi Clay;
> > >
> > > I made the following changes:
> >
> > I would try making them the same:
> >
> > <fo:simple-page-master master-name="simple" page-height="11in"
> > page-width="8.5in" margin-top="2cm" margin-bottom="1cm"
> > margin-left="2cm"
> > margin-right="2cm">
> > <fo:region-body region-name="xsl-region-body" display-align="center"
> > margin-top="2.67cm" margin-bottom="2.5cm"/>
> > <fo:region-before region-name="xsl-region-before" display-align="before"
> > extent="2.67cm"/>
> > <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
> > </fo:simple-page-master>
> >
> > Do you have any keeps? It could be that some sort of keep-together
> > attribute might be getting in the way.
> >
> > > Seems the image is still running off the page. Is there some way I can
> > > detect if this will happen? I think I could leave to the users to
> > > recognize
> > > a group of images are too large for a page. They could have an option
> > > to
> > > choose a legal size page. But this is a lot of work and my manager may
> > > not
> > > like the idea. I would love to make the current system smart enough to
> > > manage this.
> > >
> > > Luke
> >
> > I remember my previous boss always wanted the programmer to do the
> > work, and not the end user... :-)
> >
> > Web Maestro Clay
> > -- 
> > <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> > My religion is simple. My religion is kindness.
> > - HH The 14th Dalai Lama of Tibet
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by JB...@s-s-t.com.
The only thought I've had on this subject is to add up the heights of the 
images (with a fudge factor for padding - say 25%) and move images that 
exceed the page height to the next page (perhaps by wrapping them in a new 
block). So, if you're usable page height is nine inches, you'd end up with 
something like this:

<fo:block>
  <fo:external-graphic height="1">
  <fo:external-graphic height="2">
  <fo:external-graphic height="2">
  <fo:external-graphic height="2">
</fo:block>
<fo:block break-before="page">
  <!-- This one kicked the to next block because it was
       too big for what was left of the previous page -->
  <fo:external-graphic height="3">
  <fo:external-graphic height="1">
  <fo:external-graphic height="1">
  <!-- and so on -->
</fo:block>

That kind of thing is nasty to implement in XSL, but it might work. Also, 
I have no idea of what other content you might be managing with the 
images, so this solution could rapidly become very complex. Still, it's a 
thought. Maybe it'll trigger a better thought on your part.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)




"Luke Shannon" <ls...@futurebrand.com> 
04/13/2005 10:08 AM
Please respond to
fop-users@xmlgraphics.apache.org


To
<fo...@xmlgraphics.apache.org>
cc

Subject
Re: image running off the page






Ok. I have created a legal option for clients creating PDF files with long
images. But one of them still doesn't fit. The images runs through the
footer and off the page on legal size. I don't know what to do from here.

Any suggestions would be welcomed.

Thanks,

Luke

----- Original Message ----- 
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Tuesday, April 12, 2005 4:39 PM
Subject: Re: image running off the page


> On Apr 12, 2005, at 1:13 PM, Luke Shannon wrote:
> > Hi Clay;
> >
> > I made the following changes:
>
> I would try making them the same:
>
> <fo:simple-page-master master-name="simple" page-height="11in"
> page-width="8.5in" margin-top="2cm" margin-bottom="1cm"
> margin-left="2cm"
> margin-right="2cm">
> <fo:region-body region-name="xsl-region-body" display-align="center"
> margin-top="2.67cm" margin-bottom="2.5cm"/>
> <fo:region-before region-name="xsl-region-before" display-align="before"
> extent="2.67cm"/>
> <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
> </fo:simple-page-master>
>
> Do you have any keeps? It could be that some sort of keep-together
> attribute might be getting in the way.
>
> > Seems the image is still running off the page. Is there some way I can
> > detect if this will happen? I think I could leave to the users to
> > recognize
> > a group of images are too large for a page. They could have an option
> > to
> > choose a legal size page. But this is a lot of work and my manager may
> > not
> > like the idea. I would love to make the current system smart enough to
> > manage this.
> >
> > Luke
>
> I remember my previous boss always wanted the programmer to do the
> work, and not the end user... :-)
>
> Web Maestro Clay
> -- 
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by Luke Shannon <ls...@futurebrand.com>.
Ok. I have created a legal option for clients creating PDF files with long
images. But one of them still doesn't fit. The images runs through the
footer and off the page on legal size. I don't know what to do from here.

Any suggestions would be welcomed.

Thanks,

Luke

----- Original Message ----- 
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Tuesday, April 12, 2005 4:39 PM
Subject: Re: image running off the page


> On Apr 12, 2005, at 1:13 PM, Luke Shannon wrote:
> > Hi Clay;
> >
> > I made the following changes:
>
> I would try making them the same:
>
> <fo:simple-page-master master-name="simple" page-height="11in"
> page-width="8.5in" margin-top="2cm" margin-bottom="1cm"
> margin-left="2cm"
> margin-right="2cm">
> <fo:region-body region-name="xsl-region-body" display-align="center"
> margin-top="2.67cm" margin-bottom="2.5cm"/>
> <fo:region-before region-name="xsl-region-before" display-align="before"
> extent="2.67cm"/>
> <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
> </fo:simple-page-master>
>
> Do you have any keeps? It could be that some sort of keep-together
> attribute might be getting in the way.
>
> > Seems the image is still running off the page. Is there some way I can
> > detect if this will happen? I think I could leave to the users to
> > recognize
> > a group of images are too large for a page. They could have an option
> > to
> > choose a legal size page. But this is a lot of work and my manager may
> > not
> > like the idea. I would love to make the current system smart enough to
> > manage this.
> >
> > Luke
>
> I remember my previous boss always wanted the programmer to do the
> work, and not the end user... :-)
>
> Web Maestro Clay
> -- 
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by The Web Maestro <th...@gmail.com>.
On Apr 12, 2005, at 1:13 PM, Luke Shannon wrote:
> Hi Clay;
>
> I made the following changes:

I would try making them the same:

<fo:simple-page-master master-name="simple" page-height="11in"
page-width="8.5in" margin-top="2cm" margin-bottom="1cm" 
margin-left="2cm"
margin-right="2cm">
<fo:region-body region-name="xsl-region-body" display-align="center"
margin-top="2.67cm" margin-bottom="2.5cm"/>
<fo:region-before region-name="xsl-region-before" display-align="before"
extent="2.67cm"/>
<fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
</fo:simple-page-master>

Do you have any keeps? It could be that some sort of keep-together 
attribute might be getting in the way.

> Seems the image is still running off the page. Is there some way I can
> detect if this will happen? I think I could leave to the users to 
> recognize
> a group of images are too large for a page. They could have an option 
> to
> choose a legal size page. But this is a lot of work and my manager may 
> not
> like the idea. I would love to make the current system smart enough to
> manage this.
>
> Luke

I remember my previous boss always wanted the programmer to do the 
work, and not the end user... :-)

Web Maestro Clay
-- 
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by Luke Shannon <ls...@futurebrand.com>.
Hi Clay;

I made the following changes:

<fo:simple-page-master master-name="simple" page-height="11in"
page-width="8.5in" margin-top="2cm" margin-bottom="1cm" margin-left="2cm"
margin-right="2cm">
<fo:region-body region-name="xsl-region-body" display-align="center"
margin-top="2.67cm" margin-bottom="2cm"/>
<fo:region-before region-name="xsl-region-before" display-align="before"
extent="2.67cm"/>
<fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
</fo:simple-page-master>

Seems the image is still running off the page. Is there some way I can
detect if this will happen? I think I could leave to the users to recognize
a group of images are too large for a page. They could have an option to
choose a legal size page. But this is a lot of work and my manager may not
like the idea. I would love to make the current system smart enough to
manage this.

Luke

----- Original Message ----- 
From: "The Web Maestro" <th...@gmail.com>
To: <fo...@xmlgraphics.apache.org>
Sent: Tuesday, April 12, 2005 3:42 PM
Subject: Re: image running off the page


> On Apr 12, 2005, at 12:07 PM, Luke Shannon wrote:
> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > <!-- configure the page attributes -->
> > <fo:layout-master-set>
> > <fo:simple-page-master master-name="simple" page-height="11in"
> > page-width="8.5in" margin-top="2cm" margin-left="2cm"
> > margin-right="2cm">
>
> I don't know if this is the problem, but you're missing the
> margin-bottom attribute here.
>
> > <fo:region-body region-name="xsl-region-body" display-align="center"
> > margin-top="2.67cm" margin-bottom="3cm"/>
> > <fo:region-before region-name="xsl-region-before"
> > display-align="before"
> > extent="2.67cm"/>
> > <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>
>
> Another problem, is that your fo:region-body overlaps the
> fo:region-after by .5cm (fo:region-body margin-bottom="3cm";
> fo:region-after extent="2.5cm")
>
> Web Maestro Clay
> -- 
> <th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
> My religion is simple. My religion is kindness.
> - HH The 14th Dalai Lama of Tibet
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: image running off the page

Posted by The Web Maestro <th...@gmail.com>.
On Apr 12, 2005, at 12:07 PM, Luke Shannon wrote:
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <!-- configure the page attributes -->
> <fo:layout-master-set>
> <fo:simple-page-master master-name="simple" page-height="11in"
> page-width="8.5in" margin-top="2cm" margin-left="2cm" 
> margin-right="2cm">

I don't know if this is the problem, but you're missing the 
margin-bottom attribute here.

> <fo:region-body region-name="xsl-region-body" display-align="center"
> margin-top="2.67cm" margin-bottom="3cm"/>
> <fo:region-before region-name="xsl-region-before" 
> display-align="before"
> extent="2.67cm"/>
> <fo:region-after region-name="xsl-region-after" extent="2.5cm"/>

Another problem, is that your fo:region-body overlaps the 
fo:region-after by .5cm (fo:region-body margin-bottom="3cm"; 
fo:region-after extent="2.5cm")

Web Maestro Clay
-- 
<th...@gmail.com> - <http://homepage.mac.com/webmaestro/>
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org