Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageSetup.php
public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1)
    {
        return $this->setPrintArea(
            Coordinate::stringFromColumnIndex($column1) . $row1 . ':' . Coordinate::stringFromColumnIndex($column2) . $row2,
            $index,
            self::SETPRINTRANGE_INSERT
        );
    }
public function addPrintAreaByColumnAndRow($column1, $row1, $column2, $row2, $index = -1)
    {
        return $this->setPrintArea(
            Coordinate::stringFromColumnIndex($column1) . $row1 . ':' . Coordinate::stringFromColumnIndex($column2) . $row2,
            $index,
            self::SETPRINTRANGE_INSERT
        );
    }
Add a new print area to the list of print areas.

@param int $column1 Start Column for the print area
@param int $row1 Start Row for the print area
@param int $column2 End Column for the print area
@param int $row2 End Row for the print area
@param int $index Identifier for a specific print area range allowing several ranges to be set
A positive index will insert after that indexed entry in the print areas list, while a
negative index will insert before the indexed entry.
Specifying an index value of 0, will always append the new print range at the end of the
list.
Print areas are numbered from 1

@throws PhpSpreadsheetException

@return PageSetup