@@ -153,8 +153,13 @@ public function addFile($name, $handle = null, $password = null)
153
153
* ->cat('end', 5, 'B') // pages 5 to end of file B in reverse order
154
154
* ->cat(null, null, 'B', 'east') // All pages from file B rotated by 90 degree
155
155
* ->saveAs('out.pdf');
156
+ * or
157
+ * $files = ['file1.pdf', 'file2.pdf', 'file3.pdf'];
158
+ * $pdf = new Pdf($files);
159
+ * $pdf->cat() // all all files, all pages
160
+ * ->saveAs('out.pdf');
156
161
*
157
- * @param int|string|array $start the start page number or an array of page
162
+ * @param int|string|array|null $start the start page number or an array of page
158
163
* numbers. If an array, the other arguments will be ignored. $start can
159
164
* also be bigger than $end for pages in reverse order.
160
165
* @param int|string|null $end the end page number or null for single page
@@ -166,7 +171,7 @@ public function addFile($name, $handle = null, $password = null)
166
171
* @param string $rotation the rotation to apply to the pages.
167
172
* @return Pdf the pdf instance for method chaining
168
173
*/
169
- public function cat ($ start , $ end = null , $ handle = null , $ qualifier = null , $ rotation = null )
174
+ public function cat ($ start = null , $ end = null , $ handle = null , $ qualifier = null , $ rotation = null )
170
175
{
171
176
$ this ->getCommand ()
172
177
->setOperation ('cat ' )
0 commit comments