public function getBin()
{
$bin = $this->getBinPath() . $this->getBinFile();
if (realpath($bin) === false) {
throw new Exception('Path must be absolute ("' . htmlspecialchars($bin, ENT_QUOTES) . '")');
}
if (file_exists($bin) === false) {
throw new Exception('WKPDF static executable "' . htmlspecialchars($bin, ENT_QUOTES) . '" was not found');
}
return $bin;
}