Hi guy
we encountered a problem by using the aspose.words component which version is the latest 23.06 , but it will be normally for the older version 22.11 .
please reference bellow code and source document .
666.docx (36.4 KB)
var doc = new Document("d:\\666.docx");
var options = new Aspose.Words.Saving.PdfSaveOptions();
options.DownsampleOptions.Resolution = 180;
SaveOutputParameters rlt = null;
try
{
///hide the comment
doc.LayoutOptions.RevisionOptions.ShowRevisionMarks = false;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;
doc.LayoutOptions.CommentDisplayMode = Aspose.Words.Layout.CommentDisplayMode.Hide;
rlt = doc.Save("d:\\666.docx.pdf", options);
}
catch (Exception ex)
{
}