The setFieldRichValue() method in class AcroFields does not work. However, 
AcroFields.getFieldRichValue() seems work. It can return thing like this:

<?xml version="1.0"?><body xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1" 
xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/";><p dir="ltr" 
style="margin-top:0pt;margin-bottom:0pt;font-family:Helvetica;font-size:12pt">read
 line1 plain</p</body>


The so called rich value.
If I write similar rich value to another field by using the following value

<?xml version="1.0"?><body xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1" 
xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/";><p dir="ltr" 
style="margin-top:0pt;margin-bottom:0pt;font-family:Helvetica;font-size:12pt"><b>write
 line1 bold</b></p</body>

passed by setFieldRichValue(). I got the return code as true, which indicates 
the success of the method. However, there is nothing in the target field of the 
result PDF file. I do have the rich text flag turned on for the write field in 
the fillable PDF form.

Please help, this is urgent as my project is due, and I have this as a show 
stopper. If I can't write part of the text in the whole text field as bold, and 
leave the rest of it as plain text, my entire project is in jeopardy. I 
couldn't find any thing using setFieldRichValue() in iText examples, and I 
googled it on internet as well. Is this a bug, or I'm calling it the wrong way.

Thanks.


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to