PadLeft::margin
PadRight::margin
An error occurs because the length of the second argument is not the same as the length of the fourth argument:
PadLeft[{1, 2, 3}, 10, 0, {2, 2}]This shows a valid use of PadLeft with four arguments:
PadLeft[{1, 2, 3}, 10, 0, 2]