1 | <?php |
||
14 | final class Page |
||
15 | { |
||
16 | /** |
||
17 | * @var PageWriter |
||
18 | */ |
||
19 | private $pageWriter; |
||
20 | |||
21 | /** |
||
22 | * @param PageWriter $pageWriter |
||
23 | * @param float $width |
||
24 | * @param float $height |
||
25 | */ |
||
26 | public function __construct(PageWriter $pageWriter, $width, $height) |
||
31 | |||
32 | /** |
||
33 | * Sets the crop box to which the page should be cropped to for displaying or printing. |
||
34 | * |
||
35 | * @param Rectangle $cropBox |
||
36 | */ |
||
37 | public function setCropBox(Rectangle $cropBox) |
||
41 | |||
42 | /** |
||
43 | * Sets the bleed box to which the page should be clipped in a production environment. |
||
44 | * |
||
45 | * @param Rectangle $bleedBox |
||
46 | */ |
||
47 | public function setBleedBox(Rectangle $bleedBox) |
||
51 | |||
52 | /** |
||
53 | * Sets the trim box to which the finished page should be trimmed. |
||
54 | * |
||
55 | * @param Rectangle $trimBox |
||
56 | */ |
||
57 | public function setTrimBox(Rectangle $trimBox) |
||
61 | |||
62 | /** |
||
63 | * Sets the art box which contains the meaningful content of the page. |
||
64 | * |
||
65 | * @param Rectangle $artBox |
||
66 | */ |
||
67 | public function setArtBox(Rectangle $artBox) |
||
71 | |||
72 | /** |
||
73 | * Rotates the page for output. |
||
74 | * |
||
75 | * The supplied value must be a multiple of 90, so either 0, 90, 180 oder 270. |
||
76 | * |
||
77 | * @param int $degrees |
||
78 | */ |
||
79 | public function rotate($degrees) |
||
83 | } |
||
84 |