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