Thanks for your query.
You may please try following sample code and provide your feedback.
// Create a workbook from source Excel file
Workbook workbook = new Workbook(sourceDir + "samplePrintCommentWhileSavingToPdf.xlsx");
// Access first worksheet
Worksheet worksheet = workbook.Worksheets;
//Set all comments to visible
foreach(var comment in worksheet.Comments)
comment.IsVisible = true;
* For print no comments use "PrintCommentsType.PrintNoComments"
* and for print the comments as displayed on sheet use "PrintCommentsType.PrintInPlace"
* For Print the comments at the end of sheet we use "PrintCommentsType.PrintSheetEnd"
worksheet.PageSetup.PrintComments = PrintCommentsType.PrintInPlace;
// Save workbook in pdf format
workbook.Save(outputDir + "outputPrintCommentWhileSavingToPdf.pdf");
samplePrintCommentWhileSavingToPdf.zip (9.5 KB)