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 Matthias Brunner <mb...@blumenstrasse.vol.at> on 2002/09/17 16:41:24 UTC
Pagination of original documents
Hello,
we are developing an editing system for parliament session minutes. The
documents are initially edited in XML and then converted into PDF with FOP.
Unfortunately, we cannot separate content and presentation completely, because
the authorative version of the minutes will be printed and the page number
will then be the only valid reference to certain positions.
Therefore, we need to get the page numbers back into the original XML
documents so that the pages cannot swap any more after a "fixation point" in
the editing process (but can still be edited in a restricted way) and
searches in electronic documents are able to return the page numbers (since
they are the only valid and useful references in parliamentary discussion).
This could probably achieved by scanning the xml area tree but this method
seems to be somewhat error-prone.
Having some "page break listener" which gets the currently processed DOM node
of the original document and adds a " page break element" to it seems more
reasonable. Yet I do not know enough about the internal architecture of Fop.
Maybe someone could give me a hint where to start or whether there is a
better way to do this?
Or has anyone done something like this before?
Any helpful replies would be greatly appreciated.
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
Re: Pagination of original documents
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Matthias Brunner wrote:
> Therefore, we need to get the page numbers back into the original XML
> documents so that the pages cannot swap any more after a "fixation point" in
> the editing process (but can still be edited in a restricted way) and
> searches in electronic documents are able to return the page numbers...
Try this:
http://marc.theaimsgroup.com/?l=fop-dev&m=102812798919134&w=2
J.Pietschmann
MARC label: PageNumberExtensionElement