}
public function getZoomAttributes() {
+ $layer = $this->to ?: 'both';
return [
'id' => $this->uid,
'page' => $this->page,
'height' => round($this->height),
'x' => round($this->left),
'y' => round($this->top),
+ 'layer' => $layer,
];
}
}
$extractOptions['quality'] = $attributes['quality'];
}
+ if (isset($attributes['layer']) && !in_array($attributes['layer'], ['image', 'text'])) {
+ unset($attributes['layer']);
+ }
+
$x = $attributes['x'];
$y = $attributes['y'];
$w = $attributes['width'];
$extractPage = $attributes['page'];
}
+ if (isset($attributes['layer']) && $attributes['layer'] === 'image') {
+ $extractOptions['texts'] = false;
+ }
+
$cache = $compiler->getCacheDir("zoomarea/" . $cachedir);
$leftArea = ['x' => $x, 'y' => $y, 'width' => $w, 'height' => $h];