-
Notifications
You must be signed in to change notification settings - Fork 283
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
footerTemplate and header #659
Comments
You mean when printing the page? |
Sorry, out of context it is difficult to understand. $options = [
'landscape' => true,
'printBackground' => true,
'displayHeaderFooter' => true,
'preferCSSPageSize' => true,
...
'headerTemplate' => '<div>foo</div>', // HOW IS THAT PART PROCESSED ?
'footerTemplate' => '<div>foo</div>', // HOW IS THAT PART PROCESSED ?
'scale' => 1.2,
]; I need to have rich headerTemplate and footerTemplates, with design, images. Is it possible ? |
Those header and footer templates will be added to the page when printing it to pdf, but they won't load external resources like images or styles. I commented this issue on #347. Using images encoded in base64 or inline styles will work. |
Hi ! thanks for all, great code.
I need to know if it is possible to make a html for the footer and maybe header templates, so we can have a text at le left part, then another in the center, and for example the page count at the far right.
I don't succeed, I've tried with float, text align, and so on but not great...
The text was updated successfully, but these errors were encountered: