Hi,

I have had a good look through the code, changed the interface in my sandbox and I can find no reason why

org.apache.fop.render.Renderer#void startPageSequence(LineArea title)

shouldn't instead be

org.apache.fop.render.Renderer#void startPageSequence(org.apache.fop.area.PageSequence pageSeq).

Of course this would mean a change in a low level interface but would be a trivial change for all our renderers.

The reason why this is important is that the implementing renderer may need to do some initial preparation work before page processing (e.g. in my case the postscript renderer may want to access some extensions that have been defined as children of the simple page master prior to processing the individual pages in its sequence). I don't think I'm missing something here.. Speak now or forever hold your peace :-)

Adrian.

Adrian Cumiskey wrote:
Hi,

I am working on the postscript renderer and have a query about org.apache.fop.render.Renderer#void startPageSequence(LineArea title). Its seems a bit wrong to me that this method is invoked with just the title of the PageSequence being passed to it, surely it would be better to pass the PageSequence itself (which contains the title). I would think that the PageSequence object itself would be much more useful to the renderer. Am I missing something? Is there a good reason which I have missed as to why it is implemented in this way?

Adrian Cumiskey.




Reply via email to