From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 14:04:47 +0000 (+0100) Subject: wip #4804 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0966cdbc9c8706415c5c274713b92bce759138e7;p=cubist_pdf.git wip #4804 @0.5 --- diff --git a/src/Document.php b/src/Document.php index da341c1..78d8e28 100644 --- a/src/Document.php +++ b/src/Document.php @@ -2,6 +2,7 @@ namespace Cubist\PDF; +use Cubist\Util\Files\Files; use Cubist\Util\Text; use Cubist\PDF\CommandLine\FWSTK; @@ -57,7 +58,7 @@ class Document public function getConvertPath(): string { - return storage_path('fluidbook/convert/' . $this->getHash() . '/'); + return Files::mkdir(storage_path('pdf/' . $this->getHash() . '/')); } /** @@ -78,6 +79,7 @@ class Document $fwstk->execute(); $infos = $fwstk->getOutput(); + file_put_contents($nfoFile, $infos); } else { $infos = file_get_contents($nfoFile); }