1b6f35a76SGreg Roach<?php 2b6f35a76SGreg Roach 3b6f35a76SGreg Roach/** 4b6f35a76SGreg Roach * webtrees: online genealogy 5*89f7189bSGreg 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 15*89f7189bSGreg 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. 44b6f35a76SGreg Roach * @param bool $add_page If true add a page, otherwise only return the true/false state 45b6f35a76SGreg Roach * 46b6f35a76SGreg Roach * @return boolean true in case of page break, false otherwise. 47b6f35a76SGreg Roach */ 48b6f35a76SGreg Roach public function checkPageBreak($h = 0, $y = '', $add_page = true): bool 49b6f35a76SGreg Roach { 50b6f35a76SGreg Roach return parent::checkPageBreak($h, $y, $add_page); 51b6f35a76SGreg Roach } 52b6f35a76SGreg Roach} 53