barryvdh / laravel-snappy

Laravel Snappy PDF
MIT License
2.6k stars 289 forks source link

How to apply footer starting at third page until the end? #447

Closed richnieh closed 2 years ago

richnieh commented 2 years ago

I am using snappy generator to generate a report which has a front page and content page, for those pages, it should not have page number at footer. In fact, they have different type of footer design than other pages.

In dompdf, it can be done by the following code. <script type="text/php"> if (isset($pdf)) { $pdf->page_script(' if ($PAGE_COUNT > 1) { $font = $fontMetrics->getFont("sans-serif", "regular"); $pdf->page_text(500, $pdf->get_height() - 44, "Page {PAGE_NUM} of {PAGE_COUNT}", null, 8, array(0,0,0)); } '); } </script> Is there a similar way to do it in Snappy?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/KnpLabs/snappy instead. When having doubts, please try to reproduce the issue with just snappy. If you believe this is an actual issue with the latest version of laravel-snappy, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.