title: How to use bootstrap in mPDF?
body: <p>I am currently using mpdf to generate my pdfs from html. So far with my current html that I am passing in, I am able to generate a one page pdf with a header and footer. However, if there is more than one page, my footer goes all the way to the bottom of the second page. Is there a way to add a header and footer for each page? </p>
  
  <p>I have tried $pdf->setHTMLHeader but it doesn't seem to take my css files in and it leaves an x where my logo is supposed to be. How can I do this? I have tried searching in various places but I can't seem to find a solution.</p>
  
  <p>This is my code</p>
  
  <pre><code>public function generate_pdf($account_id,$transaction_id,$html){
          $document_folder = $_SERVER['DOCUMENT_ROOT']."/".DOCUMENT_FOLDER."/".PAYMENT_RECEIPTS."/".date("Y");
          $extension = ".pdf";
          if(!is_dir($document_folder)){
              mkdir($document_folder, 0777,true);
          }
          $file_name = md5($transaction_id.$account_id);
          $this-&gt;load-&gt;library('m_pdf');
          $pdf = $this-&gt;m_pdf-&gt;load();
          $header = $this-&gt;load-&gt;view('pdfs/header','',true);
          $footer = $this-&gt;load-&gt;view('pdfs/footer','',true);
          $pdf-&gt;setHTMLHeader($header);
          $pdf-&gt;setHTMLFooter($footer);
          $pdf-&gt;AddPage('', // L - landscape, P - portrait 
              '', '', '', '',
              5, // margin_left
              5, // margin right
             60, // margin top
             30, // margin bottom
              0, // margin header
              0
          ); // margin footer
          $pdf-&gt;WriteHTML(base64_decode($html));
          $pdf-&gt;Output($document_folder."/".$file_name.$extension, "F");
          $result = array(
              'file_name'=&gt;$file_name,
              'file_location'=&gt;$document_folder."/".$file_name.$extension,
              'file_link'=&gt;DOCUMENT_LOCATION."/".DOCUMENT_FOLDER."/".PAYMENT_RECEIPTS."/".date("Y")."/".$file_name.$extension
          );
          return $result;
          exit;
  
      }
  </code></pre>
  
  <p>Also, is there a way to know if the output of the PDF was successful? Currently $pdf->Output only returns ""</p>
  
  <p>Thank you</p>