Hi,
what if you don't know about the final lenght (in the PDF I mean) of
Data set 1,2 and3? What if you want all the PDF pages with the same
lengh except the last one? I thought the solution was to put all stuf in
the same page-sequence as described in W3C raccomandation for FO
(http://www.w3.org/TR/xsl/slice6.html#fo-section) but I didn't know that
it could cost about 2 MB of ram per page... tooooo much for me
Foucault, Sebastien wrote:
Hello,
We encountered similar issues a long time ago.
Because of the irregular structure of the page breaks, we used an
approach based on SAX filters (quite complex) located just before the
FOP ContentHandler aiming at transforming page-break into page sequences.
The SAX filter approach allowed us to keep low memory consumption.
eg.
<doc>
<page-sequence>
Data set 1
<break/>
Data set 2
<break/>
Data set 3
</page-sequence>
</doc>
transformed by SAX filters into :
<doc>
<page-sequence>
Data set 1
</page-sequence>
<page-sequence>
Data set 2
</page-sequence>
<page-sequence>
Data set 3
</page-sequence>
</doc>
Regards
--
Sébastien FOUCAULT
-----Message d'origine-----
De : Pascal Sancho [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 12 mai 2006 12:00
À : [email protected]
Objet : RE: page-sequence and memory useage
> -----Original Message-----
> From: Giorgio [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>
> > I do not agree with these values.
> > I use FOP dayly to generate 100-250 pages documents with
> forward > references (TOC at beginning) without memory
> problem (with FOP 0.20.5).
> >
> > We writes documents that can be easily splitted in short
> page-sequences > (1-6 pages).
>
> This is a very good news for me, Pascal. My question is, how
> do you split your document? I mean, I think page-squence tag
> is made to solve the "splitting document in pages" problem
> but if there are better ways that doesn't consume large
> amount of memory I will be very glad to learn these.
> BTW, there are no examples in the FOP documentation on that task.
We use a writting method that allows to cut heavy documents in short
sequences.
So, each sequence is titled and we can insert a page-break before title.
It's especially an analytic approach, not a physical process, that
consists in structuring and mapping the information.
Since it is out of topic in this list, you can directly email me
[EMAIL PROTECTED] for more information.
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]