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);
['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);
+ }
+ }
}
}
'/svg:svg/svg:g[@id="surface1"]//svg:path',\r
'/svg:svg/svg:g[@id="surface1"]//svg:rect',\r
'/svg:svg/svg:g[@id="surface1"]//svg:filter',\r
- '/svg:svg/svg:g[@id="surface1"]//svg:use[starts-with(@xlink:href, "#image")]'\r
+ '/svg:svg/svg:g[@id="surface1"]//svg:use[starts-with(@xlink:href, "#image")]',\r
+ '//svg:image',\r
);\r
\r
//global $svglog;\r