How to convert word to pdf with all note?

how to convert word to pdf with all note on the right side?
just like this?

image.png (26.7 KB)

@yuweiming314

Please use the follow code example to convert Word document to PDF.

Document doc = new Document(MyDir + "input.docx");
doc.Save(MyDir + "19.4.pdf");

We suggest you please read the following article.
Loading, Saving and Converting