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)
------------------------------------------------------------------------------
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/

Reply via email to