Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get my wkhtmltopdf footer to display on all pages in my Laravel project with barryvdh package? #508

Open
SaraShoukry opened this issue May 28, 2023 · 0 comments

Comments

@SaraShoukry
Copy link

I have a 20 pages I need to add footer to them using wkhtmltopdf footer-html, but footer not added to all pages.
` $footerHtml = view()->make('print.footer', ['job_id' => $job_id])->render();

    $pdf = PDF::loadView('print.page', ["pages" => $pages])->setPaper('a4')
        ->setOption('footer-html', $footerHtml)
        ->setOption('margin-top', 0)
        ->setOption('margin-left', 4)
        ->setOption('margin-right', 4)
        ->setOption('margin-bottom', 35);`

The footer is showing in small files but in the file with 20 page not showing

The footer shown in all pages when the pages are 4 when more than that it doesn't show

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant