$inter = str_replace('/to', '/tp', $out);
PDFTools::makeTextSVGFile($in, $inter);
SVGTools::optimizeSVG($inter, $out);
+
}
public function getResolutionRatio(): float
use Cubist\Util\CSS;
use Cubist\Util\Files\Files;
use Cubist\Util\Json;
+use Illuminate\Support\Facades\Log;
class HTMLMultimediaLink extends Link
{
protected function _getCSSContainer()
{
+ if (!isset($this->_config['type'])) {
+ return;
+ }
+
if ($this->moveOnEvenPage()) {
$this->page--;
$this->left += $this->compiler->width;
}
}
-
-
return $css;
}
public function getCSS()
{
+ if (!isset($this->_config['width'])) {
+ Log::warning('missing width on link ' . $this->uid . ' (page ' . $this->page . ')');
+ return;
+ }
+
$sx = ($this->width / ($this->_config['width'])) * $this->getCssScale();
$sy = ($this->height / ($this->_config['height'])) * $this->getCssScale();