If you don't draw the appearances it won't be possible to flatten the 
document and depending on Acrobat's version you may not see anything. It's 
not an impossible proposition considering that HTMLWorker is already able to 
parse most of RTF but it's not something that can be done in an weekend.

Paulo

----- Original Message ----- 
From: "NoGuts" <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 14, 2009 8:22 PM
Subject: Re: [iText-questions] xfdf/fdf flatten to pdf with rich text


>
> OK. Reading
> http://www.mail-archive.com/[email protected]/msg32059.html
> I thought it was possible. I now see it´s actually your reply in that 
> thread
> :)
>
> I´m talking about the ability to make a part of a text in an acrofield 
> bold
> or italic and not RTF.
>
> Do you know if it´s possible with any other software or is it just
> impossible to achieve even with commercial software?
>
>
>
>
> Paulo Soares-3 wrote:
>>
>> Rich text is not supported in any way in iText.
>>
>> Paulo
>>
>>> -----Original Message-----
>>> From: Mjer Danielsen [mailto:[email protected]]
>>> Sent: Wednesday, October 14, 2009 4:32 PM
>>> To: [email protected]
>>> 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)


------------------------------------------------------------------------------
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
[email protected]
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