> -----Original Message----- > From: FOUCAULT Séb [mailto:[EMAIL PROTECTED]
Hi, > I read a lot of articles dealing with issues with > forward references in long documents in the mailing > list archives (page x / y). Using a third-party tool > such as iText is a solution often suggested to tackle > this kind of problems. > > Has anybody experienced such a solution ? I haven't done it myself, but I'm guessing that this would be best achieved by the following: - leave all footers as you generate them now, except for the total number of pages --the current page-number is not what's causing the problem, so this can remain as is-- maybe you can add an empty block or block-container to make sure this space remains blank - only for the total number of pages, use iText to add a text box to each page at the coördinates where this would appear if you had computed/generated it via XSL-FO > - Could the use of PDF templates be a good way to > overcome the more general problem of forward > references (maybe writing a FOP extension) ? > Could be. I'd certainly recommend looking at an extension that has been posted recently on fop-dev: http://wwwstud.ira.uka.de/~s_hecht/ This is an extension for PDF Forms --maybe you could also achieve the same effect by adding the total number of pages through iText into a form-field created with the forms extension... This could maybe avoid having to generate a text box for every page separately, since the content is identical for all pages after all. Hope this helps! Greetz, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]