0
I have a standard footer that is displayed on some pages when generating the PDF with the xhtml2pdf using Django which should be positioned at the bottom of the page. But in some I don’t want to display. With the current code I can position at the bottom of the page. However, when it is applied to all of them. How do I position the footer at the bottom of the page and not apply at all when generating the PDF?
xhtm2pdf style:
@page {
size: a4 portrait;
@frame content_frame {
left: 25pt; width: 550pt; top: 10pt; height: 850pt;
}
@frame footer_frame {
-pdf-frame-content: footer_content;
left: 50pt; width: 512pt; top: 750pt; height: 200pt;
}
}
Footer:
<div id="footer_content">
<hr>
<p align="center">
www.site.com.br <br/>
</p>