> -----Original Message----- > From: Kuba Królikowski [mailto:[EMAIL PROTECTED] > > > >> I have a document with a lot of text and I don't know how many pages > >> it will give after rendering. Do you know how could I print some > >> special text on next to last page? > > > > > > The simplest solution would be to actually put the text on next > > to last page, perhaps in a new page sequence. Maybe you mean > > something more complicated? > > > > J.Pietschmann > > > > > > Yes. I have one very long page sequence with a lot o text. I don't know > how many pages it will take. I just one to print something on the next > to last page in the footer. >
Aha... but it needs to be in the same page-sequence as the rest of the text, not? In that case, hmm, I see no immediate option, maybe a little cheat? If you can edit the FO, try inserting an fo:marker containing the desired text at about the place where you know from a previous rendering that the center of the second-to-last page is going to be (-- but not on the last page or the third-to-last, take care! :/ ) Then, in the static-content for the region-after, add an fo:retrieve-marker for this. IIC the retrieve-marker would render you an empty block on all pages where no corresponding marker can be found. I know, it's far from an ideal solution, but it *would* do the trick... Oh, another detail: there's a nasty bug with markers that renders them with the same properties as the region/block where they are defined, so to make it work correctly, you have to add an fo:wrapper around the marker to set the font-size/-weight etc. to the same values they have in the static content... For more info: check the examples for markers that came with FOP (FOP_HOME/examples/fo/markers) Hope this helps! Cheers, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
