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 Abhijit Junnare <ma...@yahoo.com> on 2003/11/19 18:00:31 UTC

different margins for first and last page

I woudl like to have different page masters for the
first and last page. 
I understand that page-position="last" is not
implemented yet in FOP> Is there any alternative to
achieving different margins of the first and last page
as compared to the rest of the pages?
thanks in advance
abhi

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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


Re: different margins for first and last page

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Abhijit Junnare wrote:

> I woudl like to have different page masters for the
> first and last page. 
> I understand that page-position="last" is not
> implemented yet in FOP> Is there any alternative to
> achieving different margins of the first and last page
> as compared to the rest of the pages?
> thanks in advance
> abhi

First check whether you can fake this effect somehow with
a table or something.
If this fails, and you know how many pages your FO produces,
use a repeatable-page-master-reference for your normal
pages with the approrpiate page count set, and another
single-page-master-reference (or also a
repeatable-page-master-reference) for the last page.
If your page count is more dynamic, you can try a two pass
approach similar to the one outlined here:
  http://xml.apache.org/fop/fo.html#fo-total-pages
The first pass gets you the page count, in the second
pass you use it for setting the proper page count on your
repeatable-page-master-reference.

J.Pietschmann



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