$index = '';
$textes = '';
+ $pageLabels = array();
$hash = $book_id;
$hash .= 'kjgl!az4.';
$audiodescription[$link['page']] = $link['to'];
$ignoreLinks[] = $id;
}
+ if ($link['type'] == 26) {
+ $pageLabels[$link['to']] = $link['page'];
+ $ignoreLinks[] = $id;
+ }
}
foreach ($ignoreLinks as $ignoreLink) {
}
$flex->addVariable('audiodescription', $audiodescription, false, true, "JSONObject");
+ $flex->addVariable('pagelabels', $pageLabels, false, true, 'JSONObject');
$flex->addVariable('links', $links, false, true, 'JSONObject');
$flex->addVariable('signature', $exportSignature, false, true, 'JSONObject');
protected $numerotation;
protected $fontDocs = array();
protected $dir;
+ protected $z = 3;
public $vdir;
public $wdir;
protected $home;
protected $widget = true;
protected $multiApp = false;
- protected $pageLabels = array('two' => 2);
+ protected $pageLabels = array();
function __construct($book_id, $version = 'stable', $phonegap = false, $phonegapVersion = 'latest', $dir = null, $standalone = false, $appcache = false, $home = false) {
global $core;
$imagesize = getimagesize(wsDocument::getDir($this->pages[1]['document_id']) . 'html/h150-' . $this->pages[1]['document_page'] . '.jpg');
$this->pdf2htmlRatio = round(($imagesize[0] * 0.48) / $this->width, 3);
- $this->cssScale = min($this->optimalWidth / $this->width, $this->optimalHeight / $this->height);
- $this->cssOneScale = min(($this->optimalWidth * 2) / $this->width, $this->optimalHeight / $this->height);
+ $this->cssScale = $this->z * min($this->optimalWidth / $this->width, $this->optimalHeight / $this->height);
+ $this->cssOneScale = $this->z * min(($this->optimalWidth * 2) / $this->width, $this->optimalHeight / $this->height);
$this->cssWidth = $this->width * $this->cssScale;
$this->cssHeight = $this->height * $this->cssScale;
if (!isset($this->book->parametres->bookmarkCornerSize)) {
$this->book->parametres->bookmarkCornerSize = 10;
}
- $size = round($this->width * $this->book->parametres->bookmarkCornerSize * 0.0075);
+ $size = round($this->width * $this->book->parametres->bookmarkCornerSize * 0.0075 * $this->z);
$res[] = '#links .bookmark{width:' . $size . 'px;height:' . $size . 'px;background-size:' . $size . 'px ' . $size . 'px;}';
$res[] = '.portrait #fluidbook .bookmark.left{left:' . ($cssWidth - $size) . 'px;}';