title: Exporting table to multipage PDF file using kendo exportPDF
body: <p>I need to export large table to pdf file using kendo pdfExport. This code I have so far:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;div style="position:relative;" id="temp-container"&gt;
      &lt;div style="position:absolute;left:0px;top:50px;width:100%;background:url('http://127.0.0.1:8000/images/arrow1.png') no-repeat;height:50px;"&gt;&lt;/div&gt;
      &lt;div style="position:absolute;left:26%;top:50px;font-size:28px;"&gt;Number&lt;/div&gt;
      &lt;div style="position:absolute;left:50%;margin-left:-50px;width:100px;top:90px;font-size:28px;"&gt;Original&lt;/div&gt;
  
      &lt;div style="position:absolute;right:0px;width:33%;top:50px;"&gt;Date1&lt;/div&gt;
      &lt;div style="position:absolute;right:0px;width:33%;top:80px;"&gt;Date2&lt;/div&gt;
      &lt;div style="position:absolute;right:0px;width:33%;top:110px;"&gt;Date3&lt;/div&gt;
  
      &lt;div style="position:absolute;left:0px;right:0px;top:150px;background:url('http://127.0.0.1:8000/images/arrow3.png') no-repeat;height:50px;background-size:100% 100%;"&gt;&lt;/div&gt;
  
      &lt;table cellpadding="6px" cellspacing="3px" border="0px" style="width:100%;position:relative;top:200px;"&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="width:80px;position:relative;text-align:center;height:30px;line-height:30px;"&gt;
                  &lt;div style="position:absolute;right:0px;top:0px;bottom:0px;width:22px;background:url('http://127.0.0.1:8000/images/background.png') repeat;"&gt;LP&lt;/div&gt;
              &lt;/td&gt;
              &lt;td style="width:300px;background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;Index&lt;/td&gt;
              &lt;td style="background:url('http://127.0.0.1:8000/images/background.png') repeat-x;text-align:center;"&gt;TEXT&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and this is pdf export function call:</p>
  
  <pre><code>setTimeout(function () {
              kendo.drawing.drawDOM($("#temp-container"))
                  .then(function (group) {
                      // Render the result as a PDF file
                      return kendo.drawing.exportPDF(group, {
                          paperSize: "A4",
                          multiPage: true,
                          margin: { left: "0cm", top: "1cm", right: "0cm", bottom: "1cm" }
                      });
                  })
                  .done(function (data) {
                      // Save the PDF file
                      kendo.saveAs({
                          dataURI: data,
                          fileName: "HR-Dashboard.pdf",
                          proxyURL: "http://demos.telerik.com/kendo-ui/service/export"
                      });
                  });
          }, 1000);
  </code></pre>
  
  <p>My problem is that generated file has one page only. According to documentation <a href="http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#automatic-page-breaking-q1-2015" rel="nofollow">http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#automatic-page-breaking-q1-2015</a> my table cannot be positioned as fixed or absolute and is not. I need to apply autopaging because I don't know how many elements will be in table. In example above is a lot of them but in some other cases one or two elements only. What am I doing wrong?</p>
  
  <p>And another problem that drives me crazy is that I cannot adjust papersize. I tried to set A4, A5 in exportPDF attributes and set width and height of main container  in inches. But still the generated document is not properly adjusted. I think that paperSize A4 should automatically adjust main container to A4 size?</p>