Hi! If you mean the ONLYOFFICE desktop app, there is no option to change the default page size. We plan to add this option in future releases.
However, there is a workaround that might help you. You can try the method described on GitHub: https://github.com/ONLYOFFICE/DesktopEditors/issues/759