if (!isset($attributes['pdf']) || !$attributes['pdf']) {
$pdfpath = $compiler->getPagePDFSource($attributes['page']);
- if(!$pdfpath){
+ if (!$pdfpath) {
$compiler->addIssue(16, ['error' => 'The zoom area can\'t be generated', 'uid' => $attributes['id'], 'page' => $attributes['page']]);
return null;
}
$leftArea = ['x' => $x, 'y' => $y, 'width' => $leftWidth, 'height' => $leftHeight];
- $leftfile = PDF::extractArea($pdfpath,
+ $leftfile = $compiler->extractPDFArea($pdfpath,
$extractPage,
$leftArea,
null, $extractOptions, $cache);
}
$diff = ($w + $x) - $bookwidth;
- $rightfile = PDF::extractArea($pdfpath,
+ $rightfile = $compiler->extractPDFArea($pdfpath,
$extractPage,
['x' => 0, 'y' => $y, 'width' => $diff, 'height' => $h],
null, $extractOptions, $cache);