Follow below steps to achieve it:
DOMPDF_ENABLE_PHP from /config/dompdf.phpphp artisan vendor:publish command$pdf object from controller:<script type="text/php">
if ( isset($pdf) ) {
$font = Font_Metrics::get_font("helvetica", "bold");
$pdf->page_text(72, 18, "Header: {PAGE_NUM} of {PAGE_COUNT}", $font, 6, array(0,0,0));
}
</script>
You can get more idea from Page count and page number
this package not supporting bootstrap style sheet so any solution for bootstrap css.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.