Hi,

I recently found out that rtf styles are available in iText 1.4. Great 
work!

I have a few questions about them and some other issues. Any help would 
greatly appreciated.

- I created a few more styles (next to the default ones) and want to use 
them in sections and in tables. This works for sections if I register 
the styles in the DocumentSettings. But I had no luck with using styles 
in tables. They are correctly formatted, but not associated to the 
appropriate style.

- About numbered sections/chapters:
Is there a way to or a plan to create RtfFields for the chapter/section 
numbers (so e.g. Word will automatically put in the correct numbers and 
will re-number them if one gets deleted)?

- About soft linebreaks:
How can I use them when creating my document?
I found a method to configure them in RtfChunk, but I work with Chunks 
that then get mapped to RtfChunks. So I think I do not have access to 
configure the behavior.
Is there a way to flexibly insert softlinebreaks when creating a document?

- About table cells:
Is there a way to rotate the text of a table cell?
I tried to play with RtfCell.rotate(), but did not find out how to use 
it or if it is supported in iText RtfWriter2.

About chapters / sections:
When creating sections (with styles), I always got an additional 
linebreak when a table or another section follows. This seems to be 
caused by RtfParagraph, line 168. However, when I remove this block, 
sections are missing the linebreak when a paragraph or a list follows. 
Seems as if this is some sort of bug. My solution was to remove the 
block in RtfParagraph and check in the RtfChapter and RtfSection where 
items are added wether the elements are of a type that needs a 
linebreak. Unfortunately this will only work if all paragraphs are in 
chapters or sections...



_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to