From: Vincent Vanwaelscappel Date: Fri, 5 Jan 2024 14:53:12 +0000 (+0100) Subject: wip #6611 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=b32d764e3350dafbd57e30f50d7818aca78a830b;p=fluidbook_tools.git wip #6611 @0.25 --- diff --git a/.idea/deployment.xml b/.idea/deployment.xml index 897baa7..8993858 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -1,15 +1,32 @@ - + diff --git a/src/Jobs/ProcessFile.php b/src/Jobs/ProcessFile.php index 5ee4824..e987400 100644 --- a/src/Jobs/ProcessFile.php +++ b/src/Jobs/ProcessFile.php @@ -28,6 +28,8 @@ class ProcessFile protected $quality = 85; + protected $localBuffer = false; + /** * @var ProcessPage */ @@ -302,6 +304,8 @@ class ProcessFile return $res; } + + /** * @return int */ diff --git a/src/Jobs/ProcessPage.php b/src/Jobs/ProcessPage.php index 6e11ae9..ab8fdf8 100644 --- a/src/Jobs/ProcessPage.php +++ b/src/Jobs/ProcessPage.php @@ -3,15 +3,12 @@ namespace Fluidbook\Tools\Jobs; use Cubist\PDF\PDFTools; -use Cubist\Util\Files\Files; use Fluidbook\Tools\Document; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; -use Cubist\Util\CommandLine; - class ProcessPage implements ShouldQueue { diff --git a/src/Links/HTMLMultimediaLink.php b/src/Links/HTMLMultimediaLink.php index 0dfafe5..8157809 100644 --- a/src/Links/HTMLMultimediaLink.php +++ b/src/Links/HTMLMultimediaLink.php @@ -40,9 +40,9 @@ class HTMLMultimediaLink extends Link $dir = $fdir; $d = array('fdir' => $fdir, 'dir' => $dir); - $this->compiler->getVirtualDirectory()->copy( $this->compiler->working_path($this->to), $d['dir'] . '/' . $this->to); + $this->compiler->getVirtualDirectory()->copy($this->compiler->working_path($this->to), $d['dir'] . '/' . $this->to); $this->_config = $this->getConfigHTML($d['dir'], $this->to); - if(empty($this->_config)){ + if (empty($this->_config)) { return ''; } $this->copyExternalFile($d['dir'] . '/' . $this->to); @@ -147,7 +147,12 @@ class HTMLMultimediaLink extends Link $css = '#l_' . $this->id . '{'; $css .= 'left:' . $this->left * $this->getCssScale() . 'px;top:' . $this->top * $this->getCssScale() . 'px;'; - $css .= 'width:' . $this->_config['width'] . 'px;height:' . $this->_config['height'] . 'px;'; + if (isset($this->_config['width'])) { + $css .= 'width:' . $this->_config['width'] . 'px;'; + } + if (isset($this->_config['height'])) { + $css .= 'height:' . $this->_config['height'] . 'px;'; + } $css .= $this->getCSSZIndex(); $css .= $this->getCSSTransform(); $css .= $this->getCSSClipPath();