Update mpdf to 5.7.1

Change-Id: I432063e90f9c196b61314cfae878e842d6bf2b5e
Parameter type hints

Remove unused globals

Fix mixed spaces and tabs

Change-Id: I41a697c19ca06da4c0d0fdd89559a32bfdc40856