]> _ Git - cubist_pdf.git/commitdiff
wip #4804 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 14:04:47 +0000 (15:04 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 19 Jan 2022 14:04:47 +0000 (15:04 +0100)
src/Document.php

index da341c1f9136653bfadda5fbe6826ef845c822fc..78d8e2895398ea957b8286492bc36e5eaf039e70 100644 (file)
@@ -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);
         }