On Thursday 18 May 2006 11:43, Jukka Pitkänen wrote:
> Code below doesn't do that and I think I missed some point about
> saving the stylesheet information to the document, obviously ;)
Sorry about the long response time. I moved your e-mail to a different folder 
by accident and thus it was lost. I hope you have figured out the problem in 
the mean time otherwise here is some advice.

>     RtfParagraphStyle head=new RtfParagraphStyle("Head", "Arial", 8,
> RtfFont.BOLD,Color.black);
>     RtfParagraphStyle head2=new RtfParagraphStyle("Head2", "Arial", 8,
> RtfFont.ITALIC,Color.black);
>     RtfParagraphStyle teksti=new RtfParagraphStyle("Teksti", "Arial",
> 8, Font.NORMAL,Color.black);
You need to register the style with the document:

writer2.getDocumentSettings().registerParagraphStyle(head);
writer2.getDocumentSettings().registerParagraphStyle(head2);
writer2.getDocumentSettings().registerParagraphStyle(teksti);

Then it should work.

Sorry again for the long answer time.

Greetings,
Mark
-- 
You get along very well with everyone except animals and people.

My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc

Attachment: pgptNHTWoYDDq.pgp
Description: PGP signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to