$this->height = round($size[1], 2);
- $imagesize = getimagesize(WS_DOCS . '/' . $this->pages[1]['document_id'] . '/html/h72-' . $this->pages[1]['document_page'] . '.jpg');
- $this->pdf2htmlRatio = round($imagesize[0] / $this->width, 2);
+ $imagesize = getimagesize(WS_DOCS . '/' . $this->pages[1]['document_id'] . '/html/h150-' . $this->pages[1]['document_page'] . '.jpg');
+ $this->pdf2htmlRatio = round(($imagesize[0]*0.48) / $this->width, 2);
$this->cssScale = min($this->optimalWidth / $this->width, $this->optimalHeight / $this->height);
$this->cssOneScale = min(($this->optimalWidth * 2) / $this->width, $this->optimalHeight / $this->height);
return implode(';', $res);
}
+ protected function base62($val) {
+ $chars = '0123456789abcdefghijklmnopqrstuvwxyz';
+ $base = strlen($chars);
+ $str = '';
+ do {
+ $i = $val % $base;
+ $str = $chars[$i] . $str;
+ $val = ($val - $i) / $base;
+ } while ($val > 0);
+ return $str;
+ }
public function copyLinkFile($source, $dest, $video = false) {
$origDir = WS_BOOKS . '/working/' . $this->book_id . '/';
$types = array('flv', 'mp4', 'ogv', 'webm', 'jpg');