Hi Team,
I’ve picked up some styling issues when importing source document nodes into a destination document. I will try to clearly explain my scenario below:
My Destination document has 2 styles, MyStyle1 and MyStyle2. The Source document has MyStyle1, MyStyle2 and MyStyle3.
MyStyle1 - formatted the same in the source and destination document.
MyStyle2 - is formatted differently in the source and destination document.
MyStyle3 - exists only in the source document.
My goal is to import the Paragraph nodes from the Source doc into the Destination doc.
When using the NodeImporter and setting the ImportFormatMode to UseDestinationStyles, I get the expected output. However I’m getting issues when setting the ImportFormatMode to KeepSourceFormatting and KeepDifferentStyles.
When using ImportFormatMode.KeepSourceFormatting, I expected MyStyle2 from the source doc, to be imported into the destination doc under the name “MyStyle2_0” (as per “Remarks” in the documentation here) but it does not exist.
When using ImportFormatMode.KeepDifferentStyles, I expected MyStyle1 to be reused, however a new style called “MyStyle1_0” was created in the destination doc - and the paragraph node from the source doc uses that one instead.
Would you please be able to help me with this? Not sure if it’s a bug or a misunderstanding on my side.
Thank you!
DestinationDoc.zip (9.7 KB)
SourceDoc.zip (9.8 KB)
UseDestinationStyles.zip (19.4 KB)
KeepSourceFormatting.zip (19.5 KB)
KeepDifferentStyles.zip (19.6 KB)