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

Free Support Forum - aspose.com

Font cloning issue

I think I have found an issue with the cloning of paragraphs in regards to their fonts. I have 2 documents (attached), a target document and a source document. I clone and import all paragraphs from the source document into the target document; then I set all the paragraphs breakfonts in the target document to be bold. After this operation I would not expect this to affect the source document, but it appears that all the source documents paragraph breakfonts also have their bold applied. Is this indented behaviour?

Below is the following code used to reproduce this:

Dim sourceDoc As New Document(“c:\tmp2.doc”)
Dim targetDoc As New Document(“c:\tmp1.doc”)

For Each sourcePara As Paragraph In sourceDoc.LastSection.Body.Paragraphs
targetDoc.LastSection.Body.Paragraphs.Add(targetDoc.ImportNode(sourcePara.Clone(True), _
True, ImportFormatMode.UseDestinationStyles))

For Each p As Paragraph In targetDoc.LastSection.Body.Paragraphs
p.ParagraphBreakFont.Bold = True



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,