Files
electionvue/vendor/tecnickcom/tc-lib-pdf/test/TestableTcpdf.php
T
2026-08-30 22:02:02 +00:00

54 lines
1.3 KiB
PHP

<?php
/**
* TestableTcpdf.php
*
* @since 2002-08-03
* @category Library
* @package Pdf
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2002-2026 Nicola Asuni - Tecnick.com LTD
* @license https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
* @link https://github.com/tecnickcom/tc-lib-pdf
*
* This file is part of tc-lib-pdf software library.
*/
namespace Test;
use Com\Tecnick\Pdf\Cache\FontSubsetCacheAdapter;
use Com\Tecnick\Pdf\Cache\ImageCacheAdapter;
class TestableTcpdf extends \Com\Tecnick\Pdf\Tcpdf
{
public function exposeEnableSignatureApproval(bool $enabled = true): static
{
return $this->enableSignatureApproval($enabled);
}
public function exposeSetSignAnnotRefs(): void
{
$this->setSignAnnotRefs();
}
/**
* @param \Com\Tecnick\Pdf\Cache\CacheInterface::TYPE_* $type
*
* @throws \Com\Tecnick\Pdf\Exception
*/
public function exposeExtCacheEnabledFor(string $type): bool
{
return $this->extCacheEnabledFor($type);
}
public function exposeImageCacheAdapter(): ?ImageCacheAdapter
{
return $this->imageCacheAdapter();
}
public function exposeFontSubsetCacheAdapter(): ?FontSubsetCacheAdapter
{
return $this->fontSubsetCacheAdapter();
}
}