Hello,
We observed that when a Word document contains tracked style changes, the content is often rendered using the previous style rather than the new style, see below example:
The previous style should not affect how the content is rendered. Attached there is a document reproducing the issue when rendered to PDF.
stylechange-tc.docx (40.8 KB)
stylechange-tc.pdf (13.7 KB)
The issue is serious for us because the documents containing Tracked Changes look incorrect when converted to PDF using Aspose. Is there anything that can be done about it? We are on Aspose.Words 24.10.
@draftable As I can see Aspose.Words renders the document the same way as MS Word does:
Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.RevisionOptions.ShowInBalloons = ShowInBalloons.Format;
doc.Save(@"C:\Temp\out.pdf");
Aspose.Words: out.pdf (24.9 KB)
MS Word: ms.pdf (55.9 KB)
You can use RevisionOptions to configure how revisions are rendered.
Thanks for checking.
The issue turned out to be caused by the fact we had this flag configured: revisionOptions.ShowOriginalRevision = true
.
The intent of this flag was not clear to us. After removing it, it renders correctly.
@draftable It is perfect that you managed to resolve the problem. Please feel free to ask in case of any issues, we are always glad to help you.
1 Like