-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPdf.php
More file actions
102 lines (92 loc) · 2.08 KB
/
Pdf.php
File metadata and controls
102 lines (92 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
/** @noinspection SpellCheckingInspection */
namespace EvoSys21\PdfLib\Tcpdf;
use TCPDF;
/**
* TCPDF extended class.
*
* In order to implement the TCPDF Add-on, we need access to private/protected properties from
* the TCPDF class. As these are not provided by setters and getters the TCPDF class was
* extended and these properties made public.
*
* In all subclasses we refer to Pdf class and not TCPDF.
*/
class Pdf extends TCPDF
{
public $images;
public $w;
public $tMargin;
public $bMargin;
public $lMargin;
public $rMargin;
public $k;
public $h;
public $x;
public $y;
public $ws;
public $FontFamily;
public $FontStyle;
public $FontSize;
public $FontSizePt;
public $CurrentFont;
public $TextColor;
public $DrawColor;
public $LineWidth;
public $FillColor;
public $ColorFlag;
public $AutoPageBreak;
public $CurOrientation;
public $encoding;
public $isunicode;
public $doc_creation_timestamp;
public $doc_modification_timestamp;
public $file_id;
public $tcpdf_version;
public $svgunit;
public bool $showHeader = true;
public bool $showFooter = true;
public bool $drawMargins = false;
// phpcs:disable
public function _out($s)
{
return parent::_out($s);
}
// phpcs:enable
public function getCellCode(
$w,
$h = 0,
$txt = '',
$border = 0,
$ln = 0,
$align = '',
$fill = false,
$link = '',
$stretch = 0,
$ignore_min_height = false,
$hAlign = 'T',
$vAlign = 'M'
) {
return parent::getCellCode(
$w,
$h,
$txt,
$border,
$ln,
$align,
$fill,
$link,
$stretch,
$ignore_min_height,
$hAlign,
$vAlign
);
}
public function saveToFile($fileName)
{
$this->Output($fileName, 'F');
}
public function getUnderline() : bool
{
return $this->underline;
}
}