We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Merge styles issue

Hi,

We merge several documents together. These documents contain some styles which names are equal but where formatting is different.


When merging styles using KEEP_SOURCE_FORMATTING, the image border color is changed to orange from green.

See attached documents for a concrete example:
  • first.docx : The first document to be merged
  • second.docx : The second document to be merged in the first one

Thanks in advance
Mani

Hi Mani,


Using ImportFormatMode.KeepDifferentStyles option allows to reuse destination styles if the formatting they provide is identical to the styles in the source document. If the style in destination document is different from the source then it is imported. This option only copies styles that are different from those in the source document. Hope, this helps.

Best regards,