public function getMobileFirstRatio()
{
- return 0.48 * (620 / $this->generalInfos['size'][0]);
+ return 620 / $this->generalInfos['size'][0];
}
public function makeMiniShot($page)
$rratio = $this->getResolutionRatio();
foreach ($resolutions as $r => $q) {
$this->makeShotPNM($page, 'html/h' . $r . '-', $r * $rratio, $q, 4, null, false);
- $this->makeShotPNM($page, 'html/t' . $r . '-', $r * $rratio, $q, 4, null, true);
+ $this->makeShotPNM($page, 'html/t' . $r . '-', $r * $rratio, $q);
}
$this->makeSVGFile($page);
}
$rratio = $this->getMobileFirstRatio();
foreach ($resolutions as $r => $q) {
$this->makeShotPNM($page, 'mf/h' . $r . '-', $r * $rratio, $q, 4, null, false);
- $this->makeShotPNM($page, 'mf/t' . $r . '-', $r * $rratio, $q, 4, null, true);
+ $this->makeShotPNM($page, 'mf/t' . $r . '-', $r * $rratio, $q);
}
}
$this->cssSVGScale = 1;
$this->scale = 1;
+
if ($this->book->parametres->zoomMode == 1) {
$this->multiply = $this->pdf2htmlRatio * $this->scale * $this->cssOneScale;
} else {
$this->numerotation = explode(',', $this->book->numerotation);
if ($this->book->parametres->mobileNavigationType === 'mobilefirst') {
+ $this->cssScale = $this->cssOneScale = 1;
+ $this->cssWidth = $this->width;
+ $this->cssHeight = $this->height;
+ $this->cssOneWidth = $this->width;
+ $this->cssOneHeight = $this->height;
+ $this->multiply = 1;
$this->initMobileFirst();
}