injectPageCount example


        $gcEnabledAtStart = gc_enabled();
        if ($gcEnabledAtStart) {
            gc_collect_cycles();
            gc_disable();
        }

        $dompdf->render();

        $this->injectPageCount($dompdf);

        if ($gcEnabledAtStart) {
            gc_enable();
        }

        return (string) $dompdf->output();
    }

    /** * Replace a predefined placeholder with the total page count in the whole PDF document */
    
Home | Imprint | This part of the site doesn't use cookies.