Added mpdf tests. Adjusted the PDF metadata optimization.