How to accept or regect all of the changes from the command line

I want to accept all of the changes when i convert word to pdf, is it possible?

I am pretty sure that there are no command line switches for that.
You could write a macro which does accept all changes and then exports to pdf. See How do I run a LibreOffice macro from the command line without the GUI? - Super User for a starter