Rich text problem and paragraph width

I am using iText to create a pdf from a notes form. I use a java agent to put the values from Notes into the xml converter. When i use a text field the text transfers across perfectly. However when I use a rich text field, although the data transfers across perfectly the width of the paragraphs appears to be two thirds the width of the page. Although if you right align the text it will go to the far right correctly. So it is almost as if the text thinks there is a tab stop on the page or a paragraph width limit.

Does anyone know how I can use a rich text field to hold the data but stretch the text to the correct width of the page? I am sure it is a problem with the rich text and not iText.

Any help greatly appreciated. Thanks in advance.

Subject: Rich text problem and paragraph width

Have you tried tinkering with the RichTextParagraphStyle Java class, i.e. applying this to the rt item before grabbing it?

Subject: RE: Rich text problem and paragraph width

thanks for the very quick reply - yes i have tried that and it doesnt seem to make any difference

Subject: RE: Rich text problem and paragraph width

The content of rich text field is formatted to 80 characters per line before text-wrapping occurs.I’m not very familiar with Java agents but in LotusScript agent, I can use the method GetFormattedText to fix this problem. Maybe you can try to find a Java class performing the similar function.

Subject: RE: Rich text problem and paragraph width

that seems to work - thanks!