Hi @L W ,
If you are using the Comments feature in SharePoint Online library, it is not supported to set comments visible to yourself only.
The comments are by default visible to everyone who has access to the file, and this applies to all types of files including PDF.
This is by design.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.