From 0966cdbc9c8706415c5c274713b92bce759138e7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Jan 2022 15:04:47 +0100 Subject: [PATCH] wip #4804 @0.5 --- src/Document.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.5