Vertical/Horizontal Document centering

Here’s some code samples for centering: