title: TCPDF SetAutoPageBreak() messes up scaling of my Footer()
body: <p>I am using a custom Footer and have set its position with  setY();. However, the content goes on behind my Footer, which means I needed to make my pagebreak higher. This resulted in messing up the size of my footer when I have more than one page. </p>
  
  <p>My footer consists of tables with images inside. The thing that goes wrong, is that the images are getting weird sizes by some kind of scaling! The larger I make my setAutoPageBreak(), the more messed up my footer will become.</p>
  
  <p>I've been at it for quite some hours. I hope someone can help me on this one.</p>
  
  <p>My footer:</p>
  
  <pre><code> public function Footer() {
          $footer = '&lt;table&gt;
                          &lt;tr&gt;
                              &lt;td width="30" height="50"&gt;&lt;/td&gt;
                              &lt;td style="width: 570px; height: 55px;"&gt;
                                 &lt;img src="some_image" width="30" height="50" /&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;                           
                     &lt;/table&gt;                 
                  ';
  
          $this-&gt;SetY(-60);           
          $this-&gt;writeHTML($footer, true, true, true, false, '');
      }
  </code></pre>
  
  <p>TCPDF handling:</p>
  
  <pre><code>$pdf = new MyPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);    
  set margins
  $PDF_MARGIN_LEFT = 20;
  $PDF_MARGIN_TOP = 40;
  $PDF_MARGIN_RIGHT = 20;
  $pdf-&gt;SetMargins($PDF_MARGIN_LEFT, $PDF_MARGIN_TOP, $PDF_MARGIN_RIGHT);
  //LTRB
  $PDF_MARGIN_HEADER = 5;
  $PDF_MARGIN_FOOTER = 60;
  $pdf-&gt;SetHeaderMargin($PDF_MARGIN_HEADER);
  $pdf-&gt;SetFooterMargin($PDF_MARGIN_FOOTER);
  
  // set auto page breaks, it also specifies margin-bottom. This scales the footer somehow...
  $PDF_MARGIN_BOTTOM = 20;
  $pdf-&gt;SetAutoPageBreak(true, $PDF_MARGIN_BOTTOM);
  
  // set image scale factor
  $pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);
  
  $pdf-&gt;AddPage();
  
  // output the HTML content
  $pdf-&gt;writeHTML($my_printed_html, true, false, true, false, '');
  
  $pdf-&gt;Output('Test.pdf', 'I');
  </code></pre>
  
  <p>Editted:</p>
  
  <p>I noticed the problem only occurs if my footer is below the pagebreak margin. If the footer is above it, the images are normal but the content passes the footer from behind. 
  Is there a way to bypass this?</p>