Greetings,
I get the following exception when saving the attached sample Word document Issue.zip (17.0 KB) as PDF with revision balloons using Aspose.Words for .NET 20.2.0 :
System.InvalidCastException: ‘Unable to cast object of type ‘Aspose.Words.HeaderFooter’ to type ‘Aspose.Words.Body’.’
using the following C# code to reproduce :
var doc = new Document(path);
doc.LayoutOptions.RevisionOptions.ShowInBalloons = Aspose.Words.Layout.ShowInBalloons.FormatAndDelete;
doc.Save(doc.OriginalFileName + ".pdf", SaveFormat.Pdf);