PHP's printer functions are for a printer running on the server, not the client.
If you mean the client, then CSS provides margin support for paged media, but you'll be taking a gamble that the client knows what to do with
@ { margin:2cm;}
in a stylesheet.
For printing on the server, you could specify a page width narrower than the paper.