{
return $url;
}
+
+ public function addSearchWord($to, $page, $array)
+ {
+ // TODO: Implement addSearchWord() method.
+ }
}
public function getLinkAlternativeText($link);
public function shortenURL($url);
+
+ public function addSearchWord($to,$page, $array);
}
{
return $url;
}
+
+ public function addSearchWord($to, $page, $array)
+ {
+ // TODO: Implement addSearchWord() method.
+ }
}
const LAYER_MASK = 50;
const PDF_FORM = 51;
const ALT_TEXT_IMAGE = 52;
+ const SEARCH_WORD = 53;
protected static string|false|null $_linksKey = null;
public $left;
public $name = '';
public $alt = '';
public $pdfjs = '';
+ public $alternative;
protected $_ocr = false;
break;
case static::ALT_TEXT_IMAGE:
return new AltTextImageLink($id, $init, $compiler);
+ case static::SEARCH_WORD:
+ $compiler->addSearchWord($init['to'], $init['page'], ['x' => $init['left'], 'y' => $init['top'], 'width' => $init['width'], 'height' => $init['height']]);
default:
return null;
}
--- /dev/null
+<?php
+
+namespace Fluidbook\Tools\Links;
+
+use Cubist\Util\Text;
+
+class SearchWordLink extends Link {
+ protected $role = '';
+
+ public $defaultZIndex = 0;
+
+ protected function _getHTMLContainer() {
+ return '';
+ }
+
+ public function getHTMLContent() {
+ return '';
+ }
+
+}