browser shot laravel hidden footer and header when background is active

17 Views Asked by At
$pdf = Browsershot::url($url)
            ->waitUntilNetworkIdle()
            ->showBackground()
            ->showBrowserHeaderAndFooter()
            ->format('A4')
            ->fullPage()
            ->footerHtml(view('relatorio.components.footer')->render())
            ->headerHtml(view('relatorio.components.logo', $report)->render())
            ->pdf();

is it normal when you pass ->showBackground(), to cover the footer and header? i can show it by passing a transparency for the color but it looks wrong this way.

0

There are 0 best solutions below