the part of fill the template with the correct information is fine, it is working and I confess I am quite impressed with the quality of iText library about that...
the signature part is my problem.. but I believe until the weekend it will be fixed :) (and it is working anyway, but in two steps.. for the first release I will keep the two steps, but it is a kind of code smell :) about RTF: the goal of the Footprint Project is to provide a generic document generator, including formatting and security features.. we will release a pluggable infra-structure and also some buitl-int implementations.. PDF is our default format, but perhaps we can include RTF in the next releases... On 6/14/07, Javier Martinez <[EMAIL PROTECTED]> wrote: > > > Hello! > > What I am trying to do is something similar to merge fields with a RTF > Template. I need to load a logo into a RTF file depending on the name of a > company. The logo is on the header, so I get the RTF code for an image and I > replace the tag #LOGO# in the RTF template with the appropiate RTF code. > > My Java code is like this: > > String logo = filename; > Image img = Image.getInstance(logo); > RtfDocument doc = new RtfDocument(); > RtfImage rtfImg = new RtfImage(doc,img); > byte[] image = rtfImg.write(); > String str = new String(image); > > In my project, we use Jasperreports to design reports, and it uses > iText-1.3.1.jar library. If I make this with this iText Library version, I > can insert the image properly (the only problem is that the image is align > to the text). If I use the latest version of the library the string that I > obained has a lot of strange characters. > > I would be grateful if anyone can help me > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
