ILIAS  release_8 Revision v8.24
class.ilPDFGenerationConstants.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 public const HEADER_NONE = 0;
27 public const HEADER_TEXT = 1;
28 public const HEADER_HTML = 2;
29
30 public const FOOTER_NONE = 0;
31 public const FOOTER_TEXT = 1;
32 public const FOOTER_HTML = 2;
33
37 public static function getPageSizesNames(): array
38 {
39 return [
40 'A4' => 'A4',
41 'A3' => 'A3',
42 'A2' => 'A2',
43 'A1' => 'A1',
44 'A0' => 'A0',
45 'B4' => 'B4',
46 'B3' => 'B3',
47 'B2' => 'B2',
48 'B1' => 'B1',
49 'B0' => 'B0',
50 'C4' => 'C4',
51 'C3' => 'C3',
52 'C2' => 'C2',
53 'C1' => 'C1',
54 'C0' => 'C0',
55 ];
56 }
57
61 public static function getOrientations(): array
62 {
63 return [
64 'Portrait' => 'Portrait',
65 'Landscape' => 'Landscape'
66 ];
67 }
68
69 public static function getFontStyles()
70 {
71 return array(
72 'serif' => 'serif',
73 'sans-serif' => 'sans-serif',
74 'monospace' => 'monospace'
75 );
76 }
77}