diff --git a/src/Pdf.php b/src/Pdf.php index 937a0b2..48397bc 100644 --- a/src/Pdf.php +++ b/src/Pdf.php @@ -181,8 +181,12 @@ public function cat( ?string $rotation = null, ): self { $this->getCommand() - ->setOperation('cat') - ->addPageRange($start, $end, $handle, $qualifier, $rotation); + ->setOperation('cat'); + + if ($start !== null) { + $this->getCommand() + ->addPageRange($start, $end, $handle, $qualifier, $rotation); + } return $this; }