> -----Original Message-----
> From: Ganesh [mailto:[EMAIL PROTECTED]
>
> That is right, I am NOT using XSLT right now, I am using Velocity for
> the typical data merge with Java beans (java beans from fed in by
> another application). And Velocity is indeed very fast after caching the
> velocity templates.
>
> However I am stuck up with FOP (0.20.5) now, it takes a long time
> processing the fo tables? I did the profiling and it was taking too much
> of time in tables, tablerow, tablecell. Is there anyway I can optimize
> this? I have around 20 tables with each 20 rows and 5 cells. Is there
> any way to optimize fo tables (I do NOT have nested tables)? Is there
> any alternative to fo-tables, or should I try something with fo block
> and manipulate it to give look and feel of a table?
>

I dunno for sure... As I understand, a table is processed from beginning to
end and kept in memory for as long as its processing is not completely
finished.
( If you were to use a layout of one table containing 400 rows, this would
diminish performance significantly... The other way round maybe? Use a
different table for each row? )

> I tried to generate PDF of same size with just block text, it finished
> the whole processing in half the time. Any help in this regard would be
> of immense help.
>

Of course, this would also depend on the content of the table-cells.
Processing text is far more straightforward than graphic data ( so, try
using the formats for which FOP has native support - reduces having to
access methods in other libraries, e.g. Batik / JAI ).

> Thanks for the information. I am planning to use some authoring tool and
> in the process try to learn XSL-FO and do the best possible XSL-FO with
> help from you people. But I designed the whole template with fo tables
> and it slows down the PDf a lot.

Also, for an example of a GUI app in which you can design documents visually
and save it in fo format, try Inventive Designers' Scriptura

http://www.inventivedesigners.com/

I admit, it's distgustingly expensive, but the demo allows you to save in
fo-format 5 times or so... Should get you going. ( hope you have a
high-speed connection, though )

Greetz,

Andreas Delmelle


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to