Summary: | Generating one Pdf document from several xml sources. | ||
---|---|---|---|
Product: | Fop - Now in Jira | Reporter: | Victor Andreev <victor> |
Component: | page-master/layout | Assignee: | fop-dev |
Status: | CLOSED WORKSFORME | ||
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 0.91 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux |
Description
Victor Andreev
2006-01-30 17:57:10 UTC
It seems you used FOP 0.20.5 in a way that was not really intended. This operation has, until now, never been a supported operation. The redesign has abviously removed the direct possibility to do again what you could do with 0.20.5. However, there are a few points that will help you: 1. Normally, concatenating documents to a single document should be done at XSLT stage. FOP is designed to take one input document and generate one output document. If this still you still get memory problem with the latest release if you process one big document at once instead of multiple separate ones, we'd like to know about it because this is something that should work. Would you please do us the favor and retest processing the whole document in normal fashion using 0.91beta? Thanks. 2. About a month ago, I introduce the "intermediate format". It allows you to create an XML representation of the formatted document and save that as a file. You can later reparse these intermediate files and concatenate them to one big PDF file. If you download the latest FOP from Subversion (FOP Trunk), you can follow the instructions in [1] to achieve what you want. [1] http://xmlgraphics.apache.org/fop/trunk/intermediate.html 3. If you subclass org.apache.fop.area.AreaTreeHandler and override its setupModel method you should be able to reuse the RenderPagesModel instance and achieve the same effect as with 0.20.5. You will also need to instantiate the AreaTreeHandler yourself and set it on the FOUserAgent using setFOEventHandlerOverride(). Note that you need to know what you're doing here. :-) Good luck! I assume the problem is resolved. Closing the bug. Please reopen should anything be unclear. batch transition to closed remaining pre-FOP1.0 resolved bugs |