For starters, you aren't using the exact same fonts for both Flex and 
iText...so that's going to be a HUGE "consistency" issue to start with.

Secondly, are you using the Flex TextArea to lay out the text or are you using 
the new Flash Text Engine technology recently introduced on Adobe Labs?  Even 
those two will vary...

Finally, and related to the above, iText supports fancier typography features 
(such as kerning) than the old TextArea that are more in line with the newer 
text engine stuff...So again, different features.

Leonard

-----Original Message-----
From: surftango [mailto:surfta...@gmail.com] 
Sent: Thursday, June 04, 2009 2:04 PM
To: itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions] Itext and Flex Text warping issue


The issue is that when i provide an area [width x Height] and some text to
both Flex and Itext [ColumnText object] the results that i get are
Different. So two APIs are giving results that are conflicting. I was
wondering whether there is some kind of standardization. 

I use Flex in my presentation/client side and Itext in the  serverside to
churn out PDF files. Since the text i show in the client could not be
reproduced exactly in the PDF, i'm stuck.

 

1T3XT info wrote:
> 
>> And? What is the problem? AFAIK, there isn't a line in the PDF
>> Reference mentionning how a PDF producing software should behave
>> regarding text wrapping.
> 
> I also don't understand why the OP posted that "question".
> It's as if he would write to Microsoft complaining that
> a paragraph takes more lines in MSIE than in Firefox, or
> vice-versa.
> 
> iText uses font metrics to calculate the space needed by a
> String. If you address the lower level methods in PdfContentByte,
> you can take the kerning into account. You can also fine tune
> word spacing and stuff, so you could mimic what Flex does, but...
> that's a project on itself.
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
> 
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> 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/Itext-and-Flex-Text-warping-issue-tp23845057p23874976.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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/

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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