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

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));

You can get more idea from Page count and page number

Last updated 7 years ago.

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


Sign in to participate in this thread!


Your banner here too?

moschel26 moschel26 Joined 21 Dec 2015


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

Your logo here?

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

© 2024 - All rights reserved.