From 50b77ee1de03ee97a8174968235c5a98a8014b31 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 16 Feb 2022 14:36:04 +0000 Subject: [PATCH] wait #5101 @0:05 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index 9083ffd61..380bead5c 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -1769,8 +1769,11 @@ height="0" width="0" style="display:none;visibility:hidden"> } $res = wsUtil::compilePDF($this->book, $this->pages, $this); + if (!$this->config->pdfName) { + $this->config->pdfName = 'document.pdf'; + } if ($res !== false) { - $this->vdir->copy($res, 'data/' . $this->book->parametres->pdfName); + $this->vdir->copy($res, 'data/' . $this->config->pdfName); } $this->log('Print written'); return ''; -- 2.39.5