Rich text is not supported in any way in iText. Paulo
> -----Original Message----- > From: Mjer Danielsen [mailto:mje...@gmail.com] > Sent: Wednesday, October 14, 2009 4:32 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] xfdf/fdf flatten to pdf with rich text > > Hi all, > > I´ve tried getting rich text merged into an pdf by creating a > xfdf and fdf directly from acrobat pro with rich text content. > > Opening the xfdf/fdf gives the correct output, but when I try > to merge it to the pdf, all formating are lost. > > This is my code (itextsharp): > > AcroFields generatedForm = pdfStamper.AcroFields; > > pdfStamper.FormFlattening = > > true; > > // generatedForm.GenerateAppearances = false; > > generatedForm.SetFields(fdfReader); > > > > I´ve read on certain forums that GenerateAppearances should > be set to false. Then I get no output at all, however. > > > > I´ve also tried setting the property to readonly by this code > (Stated in the same post): > > generatedForm.SetFieldProperty( > > "BodyText", "setfflags", PdfFormField.FF_READ_ONLY, null); > > But I see now difference. > > > > Anyone got this to work in itext/itextsharp? There are so > little (or hard to find) information regarding this, and some > even state it´s impossible. If it´s impossible, do you know > of any APIs compatible with rich text (By using SetField() or > fdf/xfdf-merging) > > > > Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/