How does header and footer printing work in Puppeter's page.pdf API?
问题 I've noticed a few inconsistencies when trying to use the headerTemplate and footerTemplate options with page.pdf : The DPI for headers and footers seems to be lower (72 vs 96 for the main body, I think). So if I'm trying to match the margins, I have to scale by that. Styles are not shared with the main body so I have to include them in the template. If I try to use a locally stored font, it works on the main body but not in the header/footer even if I include the same CSS in the header