Convert Word to PDF, include change tracking markup

We use Aspose both to compare changes between different versions of a document, and also to convert Word documents to PDF.

However, when we convert one of the change-tracking Word documents to PDF using Aspose, the detailed markup vanishes, leaving only the red line by the side.

I’ve tried setting the following during the conversion, to no avail:

            revisionOptions.ShowRevisionMarks = true;
            revisionOptions.ShowRevisionBars = true;
            revisionOptions.ShowOriginalRevision = true;

I’ve uploaded images demonstrating what I mean.

pdf.png (2.9 KB)
word.png (5.1 KB)

@TristanP,

Thanks for your inquiry. Please use RevisionOptions.ShowRevisionBalloons property as shown below to get the desired output.

Document doc = new Document(MyDir + "in.docx");

RevisionOptions revisionOptions = doc.LayoutOptions.RevisionOptions;

revisionOptions.ShowRevisionMarks = true;
revisionOptions.ShowRevisionBars = true;
revisionOptions.ShowOriginalRevision = true;
revisionOptions.ShowRevisionBalloons = true;

doc.Save(MyDir + "18.7.pdf");

That’s fantastic, thanks Tahir. A final question: Doing that I get the markup balloons, but they’re against a grey background (see attached image). Is there any way to avoid this, or make it white, just so it looks a bit cleaner against the rest of the page?

grey background.png (12.9 KB)

@TristanP,

Thanks for your inquiry. Please note that Aspose.Words mimics the behavior of MS Word. If you convert your document to PDF using MS Word, you will get the same output. MS Word does not allow to change color of MarkUp area.

Ah that’s fine then. Thanks again for your help.