we are using Aspose.Words (Java) to append automatically generated RTF documents for our customer, who doesn’t want to open each document (about 50 RTF files) but rather wants only to open the joined document for printing. So it is absolutely important that formatting of each document does not change during concatenation. This is because the joined document, which includes too many appended documents, cannot be checked and manually corrected at the end. That means, that we rely heavily on each appended document to keep its original formatting.
However, using two documents for testing (Document_with_header_and_footer1.rtf and Document_with_header_and_footer2.rtf) we could observe that the font of the header and footer changed from Arial to Times New Roman after concatenation of these document. When using two other documents (Template_with_header_and_footer1.rtf and Template_with_header_and_footer2.rtf) it worked as expected. Why does Aspose.Words handle these documents differently? Am I doing something wrong? How could I solve the problem that the original font style of Document_with_header_and_footer2.rtf gets lost after appending to Document_with_header_and_footer1.rtf? Is there any solution that could help me to keep the original font style of each document?
Here are the documents and the source code I have used for appending the documents. RTFs_with_Header_Footer.zip (142.8 KB)
I hope you can help me.