Saranya Saranya - 3 months ago 45
PHP Question

how to get page count in dompdf without using page text

I want to get page count of my pdf without using page text.
I can get page count using page_text method.
But I want to get without using page_text.
Can anyone help me?
Thanks

Answer

You can get page count using get_page_count() method.

$pdf->$get_canvas()->$get_page_count();

Thanks.