barryvdh / laravel-snappy

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

[page] and [topage] to header-html #493

Closed kroces closed 1 year ago

kroces commented 1 year ago

how do you send [page] and [topage] in a header-html? is it possible?

my option: ->setOption('header-html', View::make('my.path', ['order' => $order])->render())

kroces commented 1 year ago

Ok, I didnt read documentation. sorry What I needed was on https://wkhtmltopdf.org/usage/wkhtmltopdf.txt in "section", "Headers and footers can also be supplied with HTML documents". But, beware tag script does not work if you are using "php artisan serve" command.