Laravel Dompdf set starting page number

How can i set the starting page number? this is my code in dompdf:

    if (isset($pdf)) {
             if ($PAGE_COUNT > 1) {

                $font = $fontMetrics->getFont("TimesNewRoman", "regular");                    
                $pdf->page_text(515, 50, "{PAGE_NUM}", $font, 11, array(.5,.5,.5));


if i want to set the value of {PAGE_NUM} to start in the number 10.

Source: stackoverflow-php

Leave a Reply

Your email address will not be published. Required fields are marked *