Fix margins on pdf generator