Henry,

Are you opening the RTF file with MS Office 2003 or some other reader 
application?
Are you attempting to open the "text" of the RTF using a text editor?

What are the "First few line:" of your code?

Regards,

Howard

----- Original Message ----
From: Henry Lu <[EMAIL PROTECTED]>
To: Post all your questions about iText here 
<[email protected]>
Sent: Thursday, February 14, 2008 10:04:44 AM
Subject: [iText-questions] rtf - strange character at the beginning

There is a strange/special/unexpected character at the very beginning of 
my rtf file if i have following code after first few line:


        Table t1 = new Table(2, (table_contents.length-1) * 2);

        // t.setBorder(Rectangle.NO_BORDER);
        // t.setDefaultCellBorder(Rectangle.NO_BORDER);

        t1.setBorderColor(new Color(255, 255, 255));
        t1.setDefaultCellBorderColor(new Color(255, 255, 255));

        t1.setWidth(100);
        t1.setAlignment("LEFT");
        t1.setWidths(new int[] { 90, 10 });

      Chunk    chnk;
//        Cell cl;
        for (i = 1; i < table_contents.length; i++)
        {
            chnk = new Chunk(table_contents[i], boldFont);
            cl = new Cell(chnk);
            t1.addCell(cl);

            cl = new Cell("Page");
            t1.addCell(cl);

            cl = new Cell(newline_p);
            cl.setColspan(2);
            t1.addCell(cl);
        }

        document.add(t1);

Could someone help me out?

-Henry

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/


      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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/

Reply via email to