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 contents to build up the links. You could probably move the
generation to endPageSequence but you'd end up duplicating some of the
data structures for establishing the links in the process which you'd
then have to map to the PDF library in the end. Not sure if that's what
you want. I don't have this stuff present as much as back when I helped
Jost, so I may be missing something.

On 23.09.2009 13:44:11 Vincent Hennebert wrote:
> 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
> PDFDocumentHandler.endPageSequence?
> 
> Thanks,
> Vincent




Jeremias Maerki

Reply via email to