Skip to content

Commit f1f9ac6

Browse files
ardabeyazoglumikehaertl
authored andcommitted
fix: incorrect cat page range (closes #347)
1 parent 63ade7a commit f1f9ac6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Pdf.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,9 @@ public function cat(
181181
?string $rotation = null,
182182
): self {
183183
$this->getCommand()
184-
->setOperation('cat');
184+
->setOperation('cat')
185+
->addPageRange(is_null($start) ? "" : $start, $end, $handle, $qualifier, $rotation);
185186

186-
if ($start !== null) {
187-
$this->getCommand()
188-
->addPageRange($start, $end, $handle, $qualifier, $rotation);
189-
}
190187
return $this;
191188
}
192189

0 commit comments

Comments
 (0)