Snappy pdf - нижний колонтитул - html поле не работает - PullRequest
0 голосов
/ 13 апреля 2020

Я пытаюсь добавить больше места между содержимым страницы и нижним колонтитулом. Я попытался добавить поля, высоту нижнего колонтитула, но ничего не работает. Нижний колонтитул всегда имеет одинаковую высоту. Вот мой результат:

enter image description here

Вот мой контроллер:

$pdf = PDF::loadView('download/template1_devis');
    $pdf->setOption('page-size', 'A4');
    $pdf->setOption('margin-top','10mm');
    $pdf->setOption('margin-bottom','10mm');
    $pdf->setOption('footer-html', View('download/footer')->render());

Мой нижний колонтитул:

<!doctype html>
<html lang="fr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Document</title>
    <style>

        @import 'http://fonts.googleapis.com/css?family=Lato:300';

        body{
            font-family: 'Lato';
            font-weight: 300;
        }
        footer p{
            text-align: center;
            font-size: 12px;
        }

    </style>
</head>
<body>
<footer>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</footer>
</body>
</html>
...