pdf generation - Wkhtmltopdf Snappy - Set Page Borders for all Pages -
i using laravel-snappy generating pdfs wkhtmltpdf. want add border in pages created in pdf file. @ moment, have added css:
body.pdf { border: 1px solid #000; }
my pdf html this:
<html> <head> <title>{{ $title }}</title> </head> <body class="pdf"> ..... </body> </html>
with above css, border shows fine if single page pdf. however, when has multiple pages, border breaks @ bottom of first page , no more border shows page 2 onwards after page-break. read documentation , dont think there feature add borders using setoption()
.
is there way resolve border appears in pages when pdf generated?
please take @ here, can find available options available including border.
you didn't mentioned how used page break.
i using way
div.page { page-break-after: always; page-break-inside: avoid; }
working fine me
Comments
Post a Comment