You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found puppeteer is a good tool for converting from html to pdf.
But the footerTemplate must be the same on all pages?
Now I need, for example, pages' footer like this:
(page 1)
pageNumber of totalNumber---------------------------vocabulary list
(page 2)
vocabulary list-------------------------------------pageNumber of totalNumber
(page 3)
pageNumber of totalNumber---------------------------vocabulary list
I prepared 2 Templates for odd and even num pages
How should i do ?
Activity
RayAnti2 commentedon Aug 8, 2018
I found puppeteer is a good tool for converting from html to pdf.
But the footerTemplate must be the same on all pages?
Now I need, for example, pages' footer like this:
(page 1)
pageNumber of totalNumber---------------------------vocabulary list
(page 2)
vocabulary list-------------------------------------pageNumber of totalNumber
(page 3)
pageNumber of totalNumber---------------------------vocabulary list
I prepared 2 Templates for odd and even num pages
How should i do ?
germanger commentedon Jan 15, 2021
I would add:
Remember to set a font-size of 8px or more, because the default is almost invisible
Also don't use
<span class='pageNumber' />.Close it with
</span>