Skip to content

Commit

Permalink
Updates to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
david4bu committed Jul 2, 2021
1 parent 0001bcb commit aeb2166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LynX39/LaraPdfMerger/PdfManage.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ private function doMerge($orientation = null, $meta = [], $duplex=false)

if ($orientation == null) $fileorientation = $size['w'] < $size['h'] ? 'P' : 'L';

$this->_fpdi->importAnnotations($i);
$this->_fpdi->AddPage($fileorientation, array($size['w'], $size['h']));
$this->_fpdi->useTemplate($template);
$this->_fpdi->importAnnotations($i);
}
} else {
foreach ($filepages as $page) {
Expand All @@ -93,9 +93,9 @@ private function doMerge($orientation = null, $meta = [], $duplex=false)

if ($orientation == null) $fileorientation = $size['w'] < $size['h'] ? 'P' : 'L';

$this->_fpdi->importAnnotations($i);
$this->_fpdi->AddPage($fileorientation, array($size['w'], $size['h']));
$this->_fpdi->useTemplate($template);
$this->_fpdi->importAnnotations($page);

}
}
Expand Down

0 comments on commit aeb2166

Please sign in to comment.