Skip to content

Commit

Permalink
Restore 'media=print' option (#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet authored Jul 17, 2023
1 parent 64eab9b commit 86cebfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nbconvert/exporters/webpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ async def main(temp_file):
raise RuntimeError(msg) from e

page = await browser.new_page()
await page.emulate_media(media="print")
await page.goto(f"file://{temp_file.name}", wait_until="networkidle")

pdf_params = {"print_background": True}
Expand Down

0 comments on commit 86cebfc

Please sign in to comment.