From: vincent@cubedesigners.com Date: Fri, 20 May 2011 15:23:55 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f153e0db13c7a29082db44fa9c13f8a62399c122;p=cubeextranet.git --- diff --git a/inc/ws/Util/packager/class.ws.packager.html5.php b/inc/ws/Util/packager/class.ws.packager.html5.php index 7ba2d6709..edf2288bd 100644 --- a/inc/ws/Util/packager/class.ws.packager.html5.php +++ b/inc/ws/Util/packager/class.ws.packager.html5.php @@ -32,7 +32,7 @@ class wsPackagerHTML5 extends wsPackager { } } - $imagesize = getimagesize(WS_DOCS . '/' . $this->pages[1]['document_id'] . '/html/h150-' . $this->pages[1]['document_page'] . '.jpg'); + $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->multiply = $this->pdf2htmlRatio * $this->scale; @@ -193,6 +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;}'; foreach ($this->cssColor as $color => $index) { $res[] = '.c' . $index . '{color:#' . $color . '}'; }