mpdf html to pdf example Example 1: html to pdf press ctrl+p then select save as pdf then enter Example 2: html to pdf CTRL + P, Then select PDF.