I am trying to convert some documents and I am getting the below issue:
Error Creating PDF
Node already belongs to some other composite node.
at 㚖.㚗.(㚕 ԇ)
at 㯠.㯟.㰊(Shape ಚ, RectangleF 㰋, Matrix 㰅, 㛩 㰌)
at 㯠.㯟.㰈(Shape ಚ, Matrix 㯻, Single 㯼, Single 㯽, Single 㯾)
at 㯠.㯟.㩀(ShapeBase ಚ)
at 㯠.㯟.㩀(ShapeBase ಚ, 㰭 㯹, Ӣ 㯞)
at ᚨ.㯓.㩀(Ӣ 㯙)
at 㨖.㭎.㭜(㯓 㢝)
at 㨖.㲈.㫋(㯓 㢝)
at ᚨ.㯓.᪡(㪴 Մ)
at ᚨ.㫍.᪡(㪴 Մ)
at 㨖.㲈.㩀(㫍 㲓, Ӣ 㯙)
at Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, Stream stream, PdfOptions options)
at Aspose.Words.Document.SaveToPdf(Int32 pageIndex, Int32 pageCount, String fileName, PdfOptions options)
at Aspose.Words.Document.SaveToPdf(String fileName)
Thanks for your request. Could you please attach the document that causes this exception? I will try to reproduce the problem and provide you more information.
Best regards.
Ok I narrowed it down, I was (accidentally) sending the same loaded document to savetopdf twice. The second time generates the error (which probably shouldn’t)… I have noticed some issues with the actual output. See my examples…
Issue 1: the group of text that starts with Transaction Reason is below the box instead of beside it.
Issue 2: the bottom “Insured Copy” rolls to another page
A little more work (and I bet issue 1 deals with a known issue with text wrapping) and I will be able to use this…
Thank you for additional information. I managed to reproduce the problem when call SaveToPdf twice. I logged this problem to our defect database as issue #7772.
Regarding layout issues, it seems both issues occur because Aspose.Words does not support Text Wrapping. This is the known issue #7180 in our defect database. Only Inline with Text, Above Text and Below Text are supported at the moment. All other wrapping will be supported later.
Best regards.
Thanks for your request. Currently, I cannot provide you any reliable estimate regarding this issue. Hopefully, this feature will be supported within few months, but I cannot promise you anything at this stage.
Best regards.
Thanks for your inquiry. Unfortunately, both issues are still unresolved. Regarding Text Wrapping feature, as you can see this is very complicated feature and it might take some time to fix it.
You will be notified as soon as these issues are resolved.
Best regards.
Hey Guys,
Any updates on issue 7180 (text wrapping around)? I REALLY need this feature so I can take advatage of the pdf/printing options in aspose word. This is becoming critical. Is there any chance this can go into the next release?
Thanks,
Ronnie
Thanks for your request. Unfortunately, the issue is still unresolved. Hopefully we will support this feature somewhere in the first half of the next year.
Best regards,
We are happy to tell you that a very cool and important feature (filed as 7180) is included in the new version of Aspose.Words. Text wrapping around images and shapes when rendering Microsoft Word documents to PDF, XPS and printing is now supported. You can download the latest version from here.