Hello, I’m using a custom print format and I added the header and footer code as shown below and they are repeated on every page when I generate the PDF document.
However, I have a case where the first page is a cover page and the header and footer should not be there.
<div id="header-html" class="hidden-pdf">
<div class="row section-break letter-head">
<div class="col-xs-12 column-break" style="margin-top: 2%">
HEADER IS HERE
<div id="footer-html" class="visible-pdf">
<div class="row section-break">
<div style="margin-bottom: -64px">
FOOTER IS HERE
<p class="text-center small page-number visible-pdf">
Page <span class="page"></span> of <span class="topage"></span>
NOTE: I’m using frappe cloud so I can’t change the internal code.
not that I know of … i guess you could play around with this somehow
does this line contain a variable of the page number, so i can use it to make condictions?
Same question here, as far as I understood this the format Function replaces the “Page n of n” with the HTML tags.
I am assuming, but I do not know, that the HTML tags are part of undocumented WKHTML2PDF functions.