From cb31f4a4e249d7e369c9ef306f4a7e88ef5b6da7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 27 Apr 2023 16:47:20 +0200 Subject: [PATCH] wip #5891 @0.25 --- app/Fluidbook/Compiler.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Fluidbook/Compiler.php b/app/Fluidbook/Compiler.php index f20137c75..10d73c9d6 100644 --- a/app/Fluidbook/Compiler.php +++ b/app/Fluidbook/Compiler.php @@ -1750,7 +1750,7 @@ height="0" width="0" style="display:none;visibility:hidden"> $favicon .= ''; } - $print = $this->writePrint(); + $print = $this->writePDF(); $message = ''; $this->log('Got index vars 4'); @@ -2009,7 +2009,7 @@ height="0" width="0" style="display:none;visibility:hidden"> return $variables; } - protected function writePrint() + protected function writePDF() { if (!$this->fluidbookSettings->print && !$this->fluidbookSettings->pdf) { return; @@ -2027,7 +2027,7 @@ height="0" width="0" style="display:none;visibility:hidden"> if ($res !== false) { $this->vdir->copy($res, 'data/' . $this->config->pdfName); } - $this->log('Print written'); + $this->log('PDF written'); return ''; } @@ -2416,14 +2416,12 @@ height="0" width="0" style="display:none;visibility:hidden"> } - $linksToAdd = [$link]; if ($link->overlapDoublePage() && !$this->isOnePage()) { $linksToAdd[] = $link->getRightClone(); } - foreach ($linksToAdd as $lta) { try { /** @var $lta Link */ @@ -4089,11 +4087,13 @@ height="0" width="0" style="display:none;visibility:hidden"> return $this->getFluidbook()->getPDFSplitSource($page); } - public function getWidthForLinks() { + public function getWidthForLinks() + { return $this->getWidth() / $this->getLinkScale(); } - public function getHeightForLinks() { + public function getHeightForLinks() + { return $this->getHeight() / $this->getLinkScale(); } } -- 2.39.5