title: How To Do A Page Break in a PDF Generated Using Pechkin
body: <p>I'm generating a PDF file based on some HTML, using the pechkin dll.</p>
  
  <p>This is all working nicely except the I need to it add a page break at certain places and I don't know how.</p>
  
  <p>I thought that using a css page-break-before, but that doesn't seem to work.</p>
  
  <p>An example of the HTML I'm using is:</p>
  
  <pre><code>&lt;table style="border-top: 0px solid black; border-bottom: 2px solid black; height: 30px; width: 800px;" border="0" cellspacing="0" cellpadding="0"&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td style="width: 200px;"&gt;&lt;strong&gt;Recommendation&lt;/strong&gt;&lt;/td&gt;
              &lt;td style="width: 600px;"&gt;[6060:Builder Recommendation]&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;table style="page-break-before: always;border-top: 0px solid black; border-bottom: 2px solid black; background-color: #99ccff; height: 30px; width: 800px;" border="0" cellspacing="0" cellpadding="0"&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;strong&gt;Summary of Actions&lt;/strong&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The code I'm using to generate the PDF is as below: </p>
  
  <pre><code>Dim buf As Byte() = Pechkin.Factory.Create(New GlobalConfig().SetMargins(New Margins(20, 20, 20, 20))
      .SetDocumentTitle("").SetCopyCount(1).SetImageQuality(100)
      .SetLosslessCompression(True)
      .SetMaxImageDpi(300)
      .SetOutlineGeneration(True)
      .SetOutputDpi(1200)
      .SetPaperOrientation(True) 
      .SetPaperSize(PaperKind.A4) 
      .SetImageQuality(100) 
      .SetPaperOrientation(False))
      .Convert(New ObjectConfig()
          .SetPrintBackground(True)
          .SetAllowLocalContent(True), strHTML)
  Return buf
  </code></pre>
  
  <p>Any ideas?</p>