Skip to content

Commit

Permalink
Render e PageGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardokum committed Feb 21, 2018
1 parent c00fb31 commit 4d5fabf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Boleto/Render/AbstractPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ public function _beginpage($orientation, $size, $rotation)
parent::_beginpage($orientation, $size, $rotation);
if ($this->NewPageGroup) {
// start a new group
$n = sizeof($this->PageGroups) + 1;
if (!is_array($this->PageGroups)) {
$this->PageGroups = [];
}
$n = sizeof($this->PageGroups) + 1;
$alias = '{' . $n . '}';
$this->PageGroups[$alias] = 1;
$this->CurrPageGroup = $alias;
Expand Down

0 comments on commit 4d5fabf

Please sign in to comment.