I had a closer look at the RTF results and I found two basic problems:

1. If the table has a indent of 0, the RTF-table does not copy this attribute 
(il0) to every table row (trowd). From the table cell's point of view it's row 
does not have an indent, so it does not look at the table's parameter. 
Therefore indenting any paragraph wrapping the table causes all the cells to 
inherit this indenting. So all the cell's content is not displayed at the left 
border, only shifted right by it's padding, but by the preceeding paragraph's 
indent. Just insert a il0 (or il+cell.getIndent(RTFWidthContext) after trowd 
and it resets the indent.

2. When creating an index, all the index terms are listed but neither their 
page numbers occurs, nor is the link right (but there's a link). If there's 
enough time I could fix the "deferred references", too...

(A less important fact is, that list bullets are not rendered properly, I had a 
question mark instead of a bullet. Somewhere I have the sample code for 
rendering fancy bullets to RTF...)

The other problem I described in the last mail (including pictures causes 
PercentageContext-Exception everytime) was a docbook related problem. If in 
docbook a table (yes, table ... wrong conclusion) column has the proportional 
width 1 this value is not rendered to the FO-document. Due to this little 
optimization the column's width is "auto" by default. (This default "auto" 
caused the problem, 'cause replaced only visible column width definitions.)

Tomorrow I'll deliver the promised perl scripts a shell wrapper. With these 
little gadgets I could transform every FO to RTF, only problem 2. remains. I'll 
also post some RTF results for illustration. If you like it, I'll start coding 
into the RTF export classes.

BTW, why doesn't RTF support GIFs? PDF does so and I see no difference, 
according to licenses. Nevertheless the RTF export is pretty cool, if you write 
the FO a bit more careful.



"Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken"
www.klarmobil.de/index.html?pid=73025


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

Reply via email to