1<?php
2
3class StrategyPageBreakSimple {
4  function StrategyPageBreakSimple() {
5  }
6
7  function run(&$pipeline, &$media, &$box) {
8    $num_pages = ceil($box->get_height() / mm2pt($media->real_height()));
9    $page_heights = array();
10    for ($i=0; $i<$num_pages; $i++) {
11      $page_heights[] = mm2pt($media->real_height());
12    };
13
14    return $page_heights;
15  }
16}
17
18?>