I am trying to display the header and the footer image on all the pages of the converted pdf file. However, only the header image is displayed on all pages and the footer image is only displayed/visible on the last page of the converted pdf (html to pdf conversion via princexml)
I am attaching the file for your reference. Any help would be highly appreciated.
Thanking in advance!!
@page {
size: A4;
margin: 50px;
@top-center {
content: element(header);
}
@bottom-center {
content: element(footer);
/* content: url('path/to/footer-image.png'); */
/* content: url('{{template_dir}}{{footer_image_path}}'); */
}
}
I am attaching the file for your reference. Any help would be highly appreciated.
Thanking in advance!!
@page {
size: A4;
margin: 50px;
@top-center {
content: element(header);
}
@bottom-center {
content: element(footer);
/* content: url('path/to/footer-image.png'); */
/* content: url('{{template_dir}}{{footer_image_path}}'); */
}
}