Hello,
I have one source and destination docx files. Using builder.insertDocument method I am merging these two docx files. I have Template file as a destination file where I set the font to Ariel, Font size to 11 and style as Normal. I have source file named RTE_BP2S_Update_ActionRequired_ContentData.docx which has some rich text which contains bullet points and other content.
If I use ImportFormatMode.KEEP_SOURCE_FORMATTING in insertDocumnet method then keep the source doc file as it is ( which is as per behavior).
If I use ImportFormatMode.USE_DESTINATION_STYLES in insertDocumnet method then it converting some other format ( change the font and font size, also the font for content and bullet point is different). As my destination docx has Ariel font and 11 size then it should display the final docx in same style however it’s not showing.
I have shared the expected output, destination File, source file and two output files which I get after using above two different format. could you please check why I am getting this behavior and what changes I have to make to get the expected output ( I have to use the format as USE_DESTINATION_STYLES so could you please suggest solution accordingly).
Regarding the code there is only one line of code to merge the doc files i.e. builder.insertDocument(doc, ImportFormatMode.USE_DESTINATION_STYLES);
Note-I am using ReplaceHandler to insert final documents.