Hello again,

I just installed SEAM 1.1.5 on my machine, and I had a quick glance at 
the source code of the PDF related functionality. As soon as I have the 
time, I'll do a more thorough inspection.

These are some remarks:

In package org.jboss.seam.pdf.ui.ITextComponent, there's
a method replaceEntities(String text). In iText 2, there
will be a class EntitiesToUnicode that will have a method
EntitiesToUnicode.decodeEntity(). You could use it to translate
every entity in the text String to its corresponding unicode
character. (The class is already in CVS.)

In org.jboss.seam.pdf.ITextUtils, I see a lot of functionality that 
would be interesting to add to iText or that is already present in iText.

The color map and colorValue: look for class WebColors
in iText: http://itext.ugent.be/library/source.php?file=128
(It will move to another package in iText 2!)
There's a static method getRGBColor(String name)
that gives you a Color instance based on a String
"#FF0000" or "red" will return Color.RED.

Method alignmentValue: this code resembles a lot
to Paragraph.setAligment(String aligment) in iText.
As a matter of fact, similar can be found in other
iText classes too. I think it would be a good idea
to add your util method to iText.

pageSizeValue is similar to the PageSizeArgument
constructor but better. Maybe this method should
be added to the PageSize class in iText.

I see that the code is LGPL, but I assume that
it's OK if I adapt these simple methods and add
them to iText, so that others can use them too ;-)

br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to