I have file(docx,pdf) and i have to retrieve or extract comments from the that.
Discussion posts and replies are publicly visible
You can try this plugin available on App market.