To set document page margins, do one of the following.

NoteNote

If you're working with a document that was loaded from file, it is impossible to change its page settings (e.g. page size, orientation, margins, etc.).