Open 7iomka opened 1 year ago
Hi, you should be able to do the same within this lib, only you need to inject the header (manipulate the dom) before making the pdf file through the browser to the current location in the file (under the correct ID)
await browserPage.evaluate(() => {
let dom = document.querySelector('#header');
dom.innerHTML = "change to something"
});
Hi. With clean puppeteer we can able to use something like this:
How to do the same with your library? Since you have use
id
for header and footer, I don't have any idea how to do that conditionally