xref: /webtrees/app/Report/TcpdfWrapper.php (revision bbc7031e8ae32e1f33bf006b05c0ac45770d10c6)
1b6f35a76SGreg Roach<?php
2b6f35a76SGreg Roach
3b6f35a76SGreg Roach/**
4b6f35a76SGreg Roach * webtrees: online genealogy
589f7189bSGreg Roach * Copyright (C) 2021 webtrees development team
6b6f35a76SGreg Roach * This program is free software: you can redistribute it and/or modify
7b6f35a76SGreg Roach * it under the terms of the GNU General Public License as published by
8b6f35a76SGreg Roach * the Free Software Foundation, either version 3 of the License, or
9b6f35a76SGreg Roach * (at your option) any later version.
10b6f35a76SGreg Roach * This program is distributed in the hope that it will be useful,
11b6f35a76SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of
12b6f35a76SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13b6f35a76SGreg Roach * GNU General Public License for more details.
14b6f35a76SGreg Roach * You should have received a copy of the GNU General Public License
1589f7189bSGreg Roach * along with this program. If not, see <https://www.gnu.org/licenses/>.
16b6f35a76SGreg Roach */
17b6f35a76SGreg Roach
18b6f35a76SGreg Roachdeclare(strict_types=1);
19b6f35a76SGreg Roach
20b6f35a76SGreg Roachnamespace Fisharebest\Webtrees\Report;
21b6f35a76SGreg Roach
22b6f35a76SGreg Roachuse TCPDF;
23b6f35a76SGreg Roach
24b6f35a76SGreg Roach/**
25b6f35a76SGreg Roach * Class TcpdfWrapper
26b6f35a76SGreg Roach */
27b6f35a76SGreg Roachclass TcpdfWrapper extends TCPDF
28b6f35a76SGreg Roach{
29b6f35a76SGreg Roach    /**
30b6f35a76SGreg Roach     * Expose protected method in base class.
31b6f35a76SGreg Roach     *
32b6f35a76SGreg Roach     * @return float Return the remaining width
33b6f35a76SGreg Roach     */
34b6f35a76SGreg Roach    public function getRemainingWidth(): float
35b6f35a76SGreg Roach    {
36b6f35a76SGreg Roach        return parent::getRemainingWidth();
37b6f35a76SGreg Roach    }
38b6f35a76SGreg Roach
39b6f35a76SGreg Roach    /**
40b6f35a76SGreg Roach     * Expose protected method in base class.
41b6f35a76SGreg Roach     *
42b6f35a76SGreg Roach     * @param mixed $h       Cell height. Default value: 0.
43b6f35a76SGreg Roach     * @param mixed $y       Starting y position, leave empty for current position.
4451928f9aSGreg Roach     * @param bool  $addpage If true add a page, otherwise only return the true/false state
45b6f35a76SGreg Roach     *
46*bbc7031eSGreg Roach     * @return bool true in case of page break, false otherwise.
47b6f35a76SGreg Roach     */
4851928f9aSGreg Roach    public function checkPageBreak($h = 0, $y = '', $addpage = true): bool
49b6f35a76SGreg Roach    {
5051928f9aSGreg Roach        return parent::checkPageBreak($h, $y, $addpage);
51b6f35a76SGreg Roach    }
52b6f35a76SGreg Roach}
53