OK. Thanks. And that goes for xfa as well?



Leonard Rosenthol-3 wrote:
> 
> I think Paulo is telling you is that is it POSSIBLE - BUT that you will
> need to write the code yourself to handle this aspect as the current iText
> library does not support rich text from FDF/XFDF...
> 
> If you are unable to write it yourself, I am sure that iText Software (aka
> Bruno) will be happy to setup some consulting services for you.
> 
> Leonard
> 
> -----Original Message-----
> From: NoGuts [mailto:mje...@gmail.com] 
> Sent: Thursday, October 15, 2009 3:04 AM
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] xfdf/fdf flatten to pdf with rich text
> 
> 
> Is it possible to achieve without flattening the form? I´m still getting
> unformated text setting GenerateAppearance and FormFlattening to false. 
> 
> I also see that all the correct properties of the field is registered, but
> it writes the "/V" from the FDF and not the "/RV". If I use XFDF, it
> doesn´t
> write anything to the PDF.
> 
> Here is the XFDF:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xfdf xmlns="http://ns.adobe.com/xfdf/"; xml:space="preserve"
>><f href="testTemplate.pdf"
> /><fields
>><field name="BodyText"
>><value-richtext
>><body xmlns="http://www.w3.org/1999/xhtml";
> xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/";
> xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1"
>><p dir="ltr"
> style="margin-top:0pt;margin-bottom:0pt;text-valign:middle;font-family:Helvetica;font-size:12pt"
>>Body Text</p
>></body
>></value-richtext
>></field
>><field name="HeaderText"
>><value-richtext
>><body xmlns="http://www.w3.org/1999/xhtml";
> xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/";
> xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1"
>><p dir="ltr"
> style="margin-top:0pt;margin-bottom:0pt;font-family:Helvetica;font-size:10pt;font-weight:bold;text-decoration:underline"
>>Header test</p
>></body
>></value-richtext
>></field
>></fields
>><ids original="04B04037CF311B43A66BF8548966ED36"
> modified="ABBE5F9EC8305242A00F3242A0373B07"
> /></xfdf
>>
> 
> 
> ...And here is the FDF:
> 
> %FDF-1.2
> %âãÏÓ
> 1 0 obj
> <</FDF<</F(testTemplate.pdf)/Fields[<</RV(<?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;text-valign:middle;font-family:Helvet\
> ica;font-size:12pt">Body&#160;Text</p></body>)/T(BodyText)/V(Body
> Text)>><</RV(<?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:10pt;\
> font-weight:bold;text-decoration:underline">Header
> test</p></body>)/T(HeaderText)/V(Header
> test)>>]/ID[<04B04037CF311B43A66BF8548966ED36><ABBE5F9EC8305242A00F3242A0373B07>]/UF(testTemplate.pdf)>>/Type/Catalog/Version/1.5>>
> endobj
> trailer
> <</Root 1 0 R>>
> %%EOF
> 
> 
> 
> 
> 
> Paulo Soares-3 wrote:
>> 
>> 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
>> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/xfdf-fdf-flatten-to-pdf-with-rich-text-tp25893515p25903905.html
> Sent from the iText - General mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> 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/
> ------------------------------------------------------------------------------
> 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/
> 

-- 
View this message in context: 
http://www.nabble.com/xfdf-fdf-flatten-to-pdf-with-rich-text-tp25893515p25907360.html
Sent from the iText - General mailing list archive at Nabble.com.


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