From: vincent@cubedesigners.com Date: Wed, 24 Feb 2021 12:18:29 +0000 (+0000) Subject: fix #4297 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=cc5b6529d6d743d1a8bd3df83691f108bda40481;p=cubeextranet.git fix #4297 @0.25 --- diff --git a/inc/ws/Controlleur/class.ws.maintenance.php b/inc/ws/Controlleur/class.ws.maintenance.php index a387c1ce0..38ecd5476 100644 --- a/inc/ws/Controlleur/class.ws.maintenance.php +++ b/inc/ws/Controlleur/class.ws.maintenance.php @@ -1478,11 +1478,14 @@ class wsMaintenance public static function processPage($args) { + CubeIT_Util_PHP::neverStop(); + global $core; $book_id = $args[0]; $page = $args[1]; + $daoBook = new wsDAOBook($core->con); $book = $daoBook->selectById($book_id); @@ -1498,10 +1501,17 @@ class wsMaintenance ['svg', '200', true, true, 'html'], ]; - foreach ($files as $file) { - $book->getFile($page, $file[0], $file[1], $file[2], $file[3], $file[4], true); + if ($page == 'all') { + $pages = range(1, $book->parametres->pages); + } else { + $pages = [$page]; } + foreach ($pages as $page) { + foreach ($files as $file) { + $book->getFile($page, $file[0], $file[1], $file[2], $file[3], $file[4], true); + } + } } } diff --git a/inc/ws/Util/class.ws.pdf.convert.php b/inc/ws/Util/class.ws.pdf.convert.php index 3e0545050..0c68767d8 100644 --- a/inc/ws/Util/class.ws.pdf.convert.php +++ b/inc/ws/Util/class.ws.pdf.convert.php @@ -125,7 +125,8 @@ class wsPDFConvert '/svg:svg/svg:g[@id="surface1"]//svg:path', '/svg:svg/svg:g[@id="surface1"]//svg:rect', '/svg:svg/svg:g[@id="surface1"]//svg:filter', - '/svg:svg/svg:g[@id="surface1"]//svg:use[starts-with(@xlink:href, "#image")]' + '/svg:svg/svg:g[@id="surface1"]//svg:use[starts-with(@xlink:href, "#image")]', + '//svg:image', ); //global $svglog;