#55 importRtfDocument do not import RTF header

open
None
5
2011-03-23
2011-03-16
No

Hi,

I started using your library in order to be able to merge two RTF documents in a single one.
It worked, but the resulting document loose color, list, font formatting and opening it with a normal
text editor I realized that the RTF header was completely missing.

Could you please help me??

Thi is the code I use:

RtfDocument doc = new RtfDocument();
RtfParser parser = new RtfParser();
parser.importRtfDocument(new java.io.FileReader("file1.rtf"), doc);
parser.importRtfDocument(new java.io.FileReader("file2.rtf"), doc);

doc.writeDocument(new java.io.FileOutputStream(path + @"\output.rtf"));

Discussion

    • assigned_to: nobody --> uzzy