Skip to content

Commit

Permalink
Merge pull request #820 from nuonic-digital/master
Browse files Browse the repository at this point in the history
chore: upgrade TCPDF::$pdfa argument type as per upstream
  • Loading branch information
spipu authored Jan 8, 2025
2 parents c9eccfd + e864968 commit d209458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Html2Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Html2Pdf
protected $_unicode = true; // means that the input text is unicode (default = true)

/**
* @var bool
* @var false|int
*/
protected $_pdfa;

Expand Down Expand Up @@ -171,7 +171,7 @@ class Html2Pdf
* @param boolean $unicode TRUE means that the input text is unicode (default = true)
* @param string $encoding charset encoding; default is UTF-8
* @param array $margins Default margins (left, top, right, bottom)
* @param boolean $pdfa If TRUE set the document to PDF/A mode.
* @param false|int $pdfa If TRUE set the document to PDF/A mode.
*
* @return Html2Pdf
*/
Expand Down Expand Up @@ -578,7 +578,7 @@ public function output($name = 'document.pdf', $dest = 'I')

// call the output of TCPDF
$output = $this->pdf->Output($name, $dest);

// close the pdf and clean up
$this->clean();

Expand Down
8 changes: 4 additions & 4 deletions src/MyPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class MyPdf extends TCPDF
* @param boolean $unicode TRUE means that the input text is unicode (default = true)
* @param string $encoding charset encoding; default is UTF-8
* @param boolean $diskcache if TRUE reduce the RAM memory usage by caching temporary data on filesystem (slower).
* @param boolean $pdfa If TRUE set the document to PDF/A mode.
* @param false|int $pdfa If TRUE set the document to PDF/A mode.
* @access public
*/
public function __construct(
Expand Down Expand Up @@ -267,7 +267,7 @@ public function clippingPathStart(
$cornerBL = null,
$cornerBR = null
) {

// init the path
$path = '';

Expand Down Expand Up @@ -1087,7 +1087,7 @@ protected function _Arc(
$drawFirst = true,
$trans = false
) {

// if we want the no trigo direction : add 2PI to the begin angle, to invert the direction
if (!$direction) {
$angleBegin+= M_PI*2.;
Expand Down Expand Up @@ -1387,7 +1387,7 @@ public function createIndex(
$page = null,
$fontName = 'helvetica'
) {

// bookmark the Title if wanted
if ($bookmarkTitle) {
$this->Bookmark($titre, 0, -1);
Expand Down

0 comments on commit d209458

Please sign in to comment.