Re: When must the structure tree be output in the PDF file?

2009-09-28 Thread Vincent Hennebert
Hi Jeremias, Jeremias Maerki wrote: snip/ IFParser is also still missing the parse code for the structure tree. I guess I would defer the call to startPageSequence in the IFParser, then parse the reduced FO tree using a ContentHandler delegate, set that on the user agent and then call

Re: When must the structure tree be output in the PDF file?

2009-09-24 Thread Vincent Hennebert
Jeremias Maerki wrote: Not just like that (if at all). The content items being produced inside the page-sequence have to be linked into the structure tree. There are links (MCIDs) back and forth between the structure tree and the content streams. You have to have the structure tree available

Re: When must the structure tree be output in the PDF file?

2009-09-24 Thread Jeremias Maerki
Ah, I see. Essentially, you're stuck in the case where the IF is loaded from XML in which case the user agent hasn't received the structure tree, yet. So, to visualize this: Direct Rendering: - Reduced FO tree is built using XSLT and set on the user agent - DocumentHandler.startPageSequence is

When must the structure tree be output in the PDF file?

2009-09-23 Thread Vincent Hennebert
To those PDF specialists around here: am I right that the structure tree could as well be converted into PDF at the end of a page sequence, as at the beginning? In other words: could the piece of code dealing with the structure tree be moved from PDFDocumentHandler.startPageSequence to

Re: When must the structure tree be output in the PDF file?

2009-09-23 Thread Jeremias Maerki
Not just like that (if at all). The content items being produced inside the page-sequence have to be linked into the structure tree. There are links (MCIDs) back and forth between the structure tree and the content streams. You have to have the structure tree available while you create the page