I have written a procedure that includes some docx in a main document. The included files styles are different from the main document styles.
The resulting document is ok: each file still looks like before the inclusion.
The problem is that after the conversion to pdf, the main document style overwrites the includes files styles, and the original layout is lost.
Here is the conversion code:
var convert = new Aspose.Words.Document(path);
convert.SaveToPdf(path.Replace(".docx", ".pdf"));
See attached the layout in the docx and in the pdf files.
Kind regards
Roberto