Aspose.Words.Document.save() converted a word document to pdf document with previously deleted text

We are using Aspose.words.dll (15.4.0.0). Please see the attached files.

Hi Caifang,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 15.6.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-12208. Your thread has been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

Hi Caifang,

Regarding WORDSNET-12208, our product team has completed the work on your issue and has come to a conclusion that they won’t be able to implement the fix to your issue. Your issue (WORDSNET-12208) will most likely be closed with ‘Won’t Fix’ resolution.

The problem occurs because Fallback shape has revisions while the DrawingML hasn’t. As a workaround please use the following code:

Document doc = new Document(MyDir + @"nicoleflyer_removedMarkup.docx");
PdfSaveOptions opts = new PdfSaveOptions();
opts.DmlRenderingMode = DmlRenderingMode.DrawingML;
doc.Save(MyDir + @"15.7.0.pdf", opts);

Please let us know if we can be of any further assistance.

Best regards,