Hello,

Im using iText for RTF document generation. This is great soft.
I have noticed something that could be, I hope, helpful for you.

1. When generating the header of the RTF document, I have to set
the footer also, otherwise header will not be shown. When setting
the footer I have to set one or more of  footers for
RtfHeaderFooter.DISPLAY_RIGHT_PAGES or/and
RtfHeaderFooter.DISPLAY_LEFT_PAGES or/and
RtfHeaderFooter.DISPLAY_FIRST_PAGE.
Setting only RtfHeaderFooter.DISPLAY_ALL_PAGES does
not help, Header will not be shown (or rather generated, it is
not shown and file size shows that probably not generated at all).

2. The second thing I have noticed (Im not sure is it a bug or a feature)
is the problem with Lists. When creating listItem from a String with
some newline characters I do not have one list item but as many as above
mentioned String have lines. The PDF writer seems to convert newlines to
soft line breaks probably. I checked manualy with m$word that list items
in rtf can have soft line breaks (represented as \line).

3. There is also some bug with RTF propagation of font style. I do not have
any ideas why some times font style propagates in one part of document
when it shouldn't and some times everyting is fine. When Ive got this problem
Im prefixing the problematic part with phrase " " with font style set to one I want
to use and then adding text with again the same font style. It is quick & dirty but
fixes the problem.


thats all for now... :-)

best regards,
kahuna


--

50% taniej dla internaut�w - roczna prenumerata miesi�cznika "Kuchnia" teraz za 
45 z�. Zam�w - http://kobieta.gazeta.pl/kuchnia/2078193,60585,2404910.html


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to