Support the ongoing development of Laravel.io →
Installation Configuration Packages
Last updated 1 year ago.
0

Follow below steps to achieve it:

  • Enable DOMPDF_ENABLE_PHP from /config/dompdf.php
  • Publish vendor file via php artisan vendor:publish command
  • Pass $pdf object from controller:
  • Add below code inside the view file:
<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

Last updated 7 years ago.
0

this package not supporting bootstrap style sheet so any solution for bootstrap css.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

moschel26 moschel26 Joined 21 Dec 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.