createPDF page breaks

By petrogus - April 22, 2015 - edited: April 22, 2015

Hi,

I'm trying to print a long table (2 or more pages long, landscape) to PDF but i cannot create page break in my document.

I tried my table to print in grid as well (i'm working with bootstrap 3). I have header and footer for every page as well.

My script for output until now:

  $GLOBALS['CREATEPDF_CUSTOM_SWITCHES'] = '--page-size A4 --encoding UTF-8 --orientation landscape --margin-top 0 --margin-bottom 25 --margin-right 0 --margin-left 0 --header-html printthis-header.html --footer-html printthis-footer.html';
  createPDF_fromOutput('inline', 'example.pdf');

Have you any sample code to create automatic page breaks?
I'm using the add-on version 1.04.
Please advise,
Kostas

PetroGus