Support » Plugin: Send PDF for Contact Form 7 » how to set header and footer

Viewing 1 replies (of 1 total)
  • Matt K.

    (@matt-k-1)

    Hi, plugin use mpdf. So, open file /classes/send-pdf.php and scroll to row 319. You will see somthing like:

    $mpdf->WriteHTML($text);

    Now you can set header and footer. Like this:

    $mpdf->SetHTMLHeader('<img src="path/to/image.jpg">');
    $mpdf->SetHTMLFooter('<div>my HTML content</div>');

    P.S.: plugin work very well 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘how to set header and footer’ is closed to new replies.