if ($this->fluidbookSettings->svgToCanvas == 2) {
$this->addPDFJSPageRenderer();
- $this->backgroundsPrefix = [false];
- $this->svg = false;
- } else {
- switch ($this->fluidbookSettings->mobileVersion) {
- case 'html5-desktop':
- $this->backgroundsPrefix = [true, false];
- $this->svg = true;
- break;
- case 'html5-images':
- $this->backgroundsPrefix = [true];
- $this->svg = false;
- break;
- default:
- $this->backgroundsPrefix = [false];
- $this->svg = true;
- break;
- }
}
+ switch ($this->fluidbookSettings->mobileVersion) {
+ case 'html5-desktop':
+ $this->backgroundsPrefix = [true, false];
+ $this->svg = true;
+ break;
+ case 'html5-images':
+ $this->backgroundsPrefix = [true];
+ $this->svg = false;
+ break;
+ default:
+ $this->backgroundsPrefix = [false];
+ $this->svg = true;
+ break;
+ }
+
+
$resolutions = $this->getResolutions();
$cacheKey = 'imagesToCopy_' . $this->imageFormat . '_' . md5(json_encode($resolutions));
$cacheKey .= '-' . $this->config->JPEGQuality;