Skip to content
Snippets Groups Projects
Commit 947b6c04 authored by mmcky's avatar mmcky
Browse files

[TEMP] Apply less stringent waitUnitl condition for pyppeteer rendering

parent e48f20ce
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ async def _html_to_pdf(html_file, pdf_file):
html_file = Path(html_file).resolve()
# Waiting for networkidle0 seems to let mathjax render
await page.goto(f"file:///{html_file}", {"waitUntil": ["networkidle0"]})
await page.goto(f"file:///{html_file}", {"waitUntil": ["networkidle2"]})
# Give it *some* margins to make it look a little prettier
# I just made these up
page_margins = {"left": "0in", "right": "0in", "top": ".5in", "bottom": ".5in"}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment