$links = $this->getLinksFromPDF();
$this->config->mediaIDToFile = [];
$res = [];
+
foreach ($links as $k => $link) {
$e = explode(':', $link['to']);
$ee = explode('/', $e[0]);
if ($ee[0] == 'anim') {
- $base = [['ease' => 'Power2.easeOut', 'duration' => 1.5, 'backgroundColor' => '#ffffff', 'transformOrigin' => 'center', 'delay' => 1], []];
+ $base = [['type'=>'','ease' => 'Power2.easeOut', 'duration' => 1.5, 'transformOrigin' => 'center', 'delay' => 1], []];
switch ($ee[1]) {
case 'fadein':
$link['type'] = 14;
$anim = '';
foreach ($base as $item) {
- if (!count($item)) {
- continue;
- }
- foreach ($item as $k => $v) {
- $anim .= $k . '=' . $v . "\n";
+ foreach ($item as $param => $value) {
+ $anim .= $param . '=' . $value . "\n";
}
$anim .= '---' . "\n";
}
+ $anim = trim($anim, " \t\n\r\0\x0B-");
+
$link['image_rollover'] = $anim;
} else if ($e[0] === 'pdf') {
$cc = explode('#', $e[1]);
}
$res[$k] = $link;
}
-
return $res;
}