From 4f29c0a2e5c9cd2548983a8e5d4c17a43d63c7f5 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Sat, 21 May 2011 13:30:35 +0000 Subject: [PATCH] --- inc/ws/Util/packager/class.ws.packager.html5.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/ws/Util/packager/class.ws.packager.html5.php b/inc/ws/Util/packager/class.ws.packager.html5.php index edf2288bd..e07046ce3 100644 --- a/inc/ws/Util/packager/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/class.ws.packager.html5.php @@ -34,7 +34,7 @@ class wsPackagerHTML5 extends wsPackager { $imagesize = getimagesize(WS_DOCS . '/' . $this->pages[1]['document_id'] . '/html/h72-' . $this->pages[1]['document_page'] . '.jpg'); $this->pdf2htmlRatio = $imagesize[0] / $this->layouts[1]['width']; - $this->scale = 10; + $this->scale = 1; $this->multiply = $this->pdf2htmlRatio * $this->scale; $this->createHTML(); @@ -193,7 +193,7 @@ class wsPackagerHTML5 extends wsPackager { protected function writeCSS() { $res = array(); - $res[] = '.background{width:' . $this->book->parametres->width . 'px;height:' . $this->book->parametres->width . 'px;}'; + $res[] = '.page,.background{width:' . $this->book->parametres->width . 'px;height:' . $this->book->parametres->height . 'px;}'; foreach ($this->cssColor as $color => $index) { $res[] = '.c' . $index . '{color:#' . $color . '}'; } @@ -289,7 +289,7 @@ class wsPackagerHTML5 extends wsPackager { protected function getCSSSize(&$size) { $size = $this->normalizeFloatValue($size, 1); - $sizer = round($size * $this->multiply); + $sizer = $size; return $this->getIndex($sizer, $this->cssSize); } -- 2.39.5