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 irene23 <ba...@yahoo.es> on 2008/01/01 22:19:13 UTC
page-position="last" doesn't work for 1 page document
Hello,
I have two page-masters defined, with one having a different footer than the
other.
When this renders to a 2+ page document, the last page gets the last footer
and the other pages get the other footer.
When it renders to a 1 page document, I get the "any" page footer, even
though the the page is the last page....
I've posted on nabble.com, and gotten replies that it is possibly a bug.
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page"
page-height="11in"
page-width="8.50in"
margin-top="0.25in"
margin-left="0.25in"
margin-right="0.25in"
margin-bottom="0.25in">
<!-- space needed for header & footer tables -->
<fo:region-body
region-name="body"
margin-top="0in"
margin-bottom="1.50in"/>
<fo:region-before region-name="header" extent="10.0in"/> <!-- space needed
for header table -->
<fo:region-after region-name="footer" extent="1.50in"/> <!-- space needed
for footer table -->
<fo:region-start extent="0.00in"/>
<fo:region-end extent="0.00in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="last-page"
page-height="11in"
page-width="8.50in"
margin-top="0.25in"
margin-left="0.25in"
margin-right="0.25in"
margin-bottom="0.25in">
<!-- space needed for header & footer tables -->
<fo:region-body
region-name="body"
margin-top="0in"
margin-bottom="1.50in"/>
<fo:region-before region-name="header" extent="10.0in"/> <!-- space
needed
for header table -->
<fo:region-after region-name="last-footer" extent="1.50in"/> <!-- space
needed for footer table -->
<fo:region-start extent="0.00in"/>
<fo:region-end extent="0.00in"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="all">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference
page-position="last" master-reference="last-page"/>
<fo:conditional-page-master-reference
page-position="any" master-reference="default-page" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
Can I get the same in other way? (With a footnote, or a block placed at the
end of the body...)
Could you help me?
--
View this message in context: http://www.nabble.com/page-position%3D%22last%22-doesn%27t-work-for-1-page-document-tp14570284p14570284.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: page-position="last" doesn't work for 1 page document
Posted by Chris Bowditch <bo...@hotmail.com>.
irene23 wrote:
> Hello,
Hi,
I see you have posted this question on fop-dev@ and general@. Please
don't cross post in future. The developers look on all lists, and
fop-users@ is the correct mailing list for questions.
>
> I have two page-masters defined, with one having a different footer than the
> other.
>
> When this renders to a 2+ page document, the last page gets the last footer
> and the other pages get the other footer.
>
> When it renders to a 1 page document, I get the "any" page footer, even
> though the the page is the last page....
>
> I've posted on nabble.com, and gotten replies that it is possibly a bug.
This is a bug and has already been raised in bugzilla, see :
http://issues.apache.org/bugzilla/show_bug.cgi?id=40798
The bug even has references to the part of the code which is at fault.
This is open source so patches are welcome :)
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: page-position="last" doesn't work for 1 page document
Posted by irene23 <ba...@yahoo.es>.
Thank you very much, but I had seen this before, what I need is a patche
for this.
Nobody know a solution for this bug?? Can I get the same in other
way?
Thanks.
irene23 wrote:
>
> Hello,
>
> I have two page-masters defined, with one having a different footer than
> the other.
>
> When this renders to a 2+ page document, the last page gets the last
> footer and the other pages get the other footer.
>
> When it renders to a 1 page document, I get the "any" page footer, even
> though the the page is the last page....
>
> I've posted on nabble.com, and gotten replies that it is possibly a bug.
>
> <fo:layout-master-set>
> <fo:simple-page-master master-name="default-page"
> page-height="11in"
> page-width="8.50in"
> margin-top="0.25in"
> margin-left="0.25in"
> margin-right="0.25in"
> margin-bottom="0.25in">
> <!-- space needed for header & footer tables -->
> <fo:region-body
> region-name="body"
> margin-top="0in"
> margin-bottom="1.50in"/>
> <fo:region-before region-name="header" extent="10.0in"/> <!-- space
> needed
> for header table -->
> <fo:region-after region-name="footer" extent="1.50in"/> <!-- space
> needed
> for footer table -->
> <fo:region-start extent="0.00in"/>
> <fo:region-end extent="0.00in"/>
> </fo:simple-page-master>
>
>
> <fo:simple-page-master master-name="last-page"
> page-height="11in"
> page-width="8.50in"
> margin-top="0.25in"
> margin-left="0.25in"
> margin-right="0.25in"
> margin-bottom="0.25in">
> <!-- space needed for header & footer tables -->
> <fo:region-body
> region-name="body"
> margin-top="0in"
> margin-bottom="1.50in"/>
> <fo:region-before region-name="header" extent="10.0in"/> <!-- space
> needed
> for header table -->
> <fo:region-after region-name="last-footer" extent="1.50in"/> <!--
> space
> needed for footer table -->
> <fo:region-start extent="0.00in"/>
> <fo:region-end extent="0.00in"/>
> </fo:simple-page-master>
>
>
> <fo:page-sequence-master master-name="all">
> <fo:repeatable-page-master-alternatives>
>
> <fo:conditional-page-master-reference
> page-position="last" master-reference="last-page"/>
>
> <fo:conditional-page-master-reference
> page-position="any" master-reference="default-page" />
>
> </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
> </fo:layout-master-set>
>
> Can I get the same in other way? (With a footnote, or a block placed at
> the end of the body...)
>
> Could you help me?
>
>
--
View this message in context: http://www.nabble.com/page-position%3D%22last%22-doesn%27t-work-for-1-page-document-tp14570284p14575920.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org