Location: PHPKode > projects > Html2ps > html2ps-2.0.43/strategy.page.break.simple.php
<?php

class StrategyPageBreakSimple {
  function StrategyPageBreakSimple() {
  }

  function run(&$pipeline, &$media, &$box) {
    $num_pages = ceil($box->get_height() / mm2pt($media->real_height()));
    $page_heights = array();
    for ($i=0; $i<$num_pages; $i++) {
      $page_heights[] = mm2pt($media->real_height());
    };    

    return $page_heights;
  }
}

?>
Return current item: Html2ps