This is a small hack
that adds a page numbers at the bottom of the page. Using Puppeteer and a fixed height, the page will render at an A4
size via web and have a fixed footer.
await page.goto('https://bl.ocks.org/seripap/raw/81241195e182b62adc3c87c27258f85f/', {waitUntil: 'networkidle'});
await page.pdf({
path: 'hacks.pdf',
format: 'A4'
});
Impressive solution! Wont work for dynamic content of unknown height though.