I'm using Word2007 to create a RTF file. And in the end, I want to get the text source of that file like
Here is how I create a blank RTF file:
- New a txt file by the context menu.
- Change its extension name to rtf.
- Open the file with Word2007.
- Type some characters and remove them and then save.
How I get the source:
- Open the RTF file with notepad
Then a huge amount of characters ending with a lot of
fffff0000 appear which makes me crazy...
Does anyone know why this happens?
I'm using iText2.1.5(a java library that manipulates PDF) to generate PDF from RTF. The program works fine with an old test RTF file which looks much cleaner than what I get from word2007 now. I am just creating more test RTF files for the program but it turns out that it couldn't recognize the source from word 2007.
I guess maybe I should upgrade iText or downgrade Word(maybe the good old test file is generated by word2003?). But I don't have much time now.