Oleg,

You've been a great help. Through all of this, I've learned a bunch about FOP (particularly limitations & abilities).

At 02:17 PM 11/27/2002, you wrote:
Clay Leeds wrote:

What's currently happening:
(I currently have enough FLOW content to print 3 ODD pages). ODD page prints Page 1 of 5, EVEN page (Wahoo!), ODD page (3 of 5), EVEN page (Wahoo!), ODD page (5 of 5), ODD page (6 of 5 -- not Wahoo!). Go back and read that. Yes, it's an ODD page with 5 of 5 and then another ODD page that indicates 6 of 5! D'oh!
Well, show us your pagination definiton (fo:layout-master-set).

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<!-- begin: define page layout -->
<fo:layout-master-set>
<!-- master set - last page has TOTALs -->
<!-- simple page masters -->
<fo:simple-page-master master-name="any-odd" page-height="28cm" page-width="22cm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
<fo:region-before extent="13cm" region-name="xsl-region-before-odd"/>
<fo:region-after extent="2.9cm" region-name="xsl-region-after-odd"/>
<fo:region-body margin-top="13cm" margin-bottom="2.9cm" region-name="xsl-region-body-odd"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="any-even" page-height="28cm" page-width="22cm" margin-top="1cm" margin-bottom="1cm" margin-left="1cm" margin-right="1cm">
<fo:region-before extent="26cm" region-name="xsl-region-before-even"/>
<fo:region-after extent="1cm" region-name="xsl-region-after-even"/>
<fo:region-body margin-top="26cm" margin-bottom="0cm" region-name="xsl-region-body-even"/>
</fo:simple-page-master>
<!-- end: layout for the first page -->
<fo:page-sequence-master master-name="repeating_pm">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference page-position="any" odd-or-even="odd" master-reference="any-odd"/>
<fo:conditional-page-master-reference page-position="any" odd-or-even="even" master-reference="any-even"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<!-- end: define page layout -->
<fo:page-sequence master-reference="repeating_pm" force-page-count="end-on-even">
<fo:static-content flow-name="xsl-region-before-odd">
<xsl:call-template name="tmpHeaderOdd"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-before-even">
<xsl:call-template name="tmpHeaderEven"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after-odd">
<xsl:call-template name="tmpFooter"/>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after-even"/>
<fo:static-content flow-name="xsl-region-body-even"/>
<fo:flow flow-name="xsl-region-body-odd">
<xsl:call-template name="tmpBodyOdd"/>
<fo:block padding="0pt" font-size="1pt">
<fo:marker marker-class-name="table-continued"/>
<fo:block id="endofdoc"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>


Another weird glitch, is that I've got funkiness with FONT rendering where it doesn't properly deal with spacing between words, and also has breaks in underlines that shouldn't be there. I tend to chalk that one up to FOP's weirdness. If I print with a Courier (monospace font), or the default font, I don't have the problem with spacing, although the underlining is still there.
File bug to bugzilla, don't forget to attach an example.

Good idea.

I went there, but it didn't help. I don't want a blank page, I want a page with content.
Usually that's much easier.

What's easier? Blank page? :-)

This page has information about how to make ODD/EVEN pages with different HEADERs/FOOTERs but it doesn't explain how to have different content on ODD & EVEN pages.
You cannot have different content flow on odd and even pages, but you can use different static content and your government disclaimer is static content as your said. Then you can resize region-before to be 100% of an even page and place there your static stuff:
<fo:simple-page-master master-name="even"
page-height="21.7cm"
page-width="21cm">
<fo:region-body margin-top="21.7cm"/>
<fo:region-before extent="21.7cm" region-name="foo"/>
</fo:simple-page-master>
...
<fo:page-sequence master-reference="blabla">
<fo:static-content flow-name="foo">
<fo:block>government disclaimer</fo:block>
</fo:static-content>

I tried this. Unfortunately, I think that's what gave me the page 6 of 5 error

Actually you can place static content to a region-body also, but afaik it doesn't work in FOP.

Problem is, while you may have zero or more static-content regions, one FLOW is required.


I ended up "resolving" all of the issues I had to resolve (except for the weird font rendering issues). Apparently I only have to have the disclaimer print at the end (Wahoo!) and I can put the TOTALS in the FLOW so they print only once (I don't have to put it in the FOOTER--Wahoo!).

It looks great! Thanks again for all of your help.

- Clay Leeds
- Web Developer
- [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to