fraserxu / electron-pdf

📄 A command line tool to generate PDF from URL, HTML or Markdown files.
MIT License
1.24k stars 136 forks source link

Feature: add runtime option for window lifespan #273

Closed codecounselor closed 3 years ago

codecounselor commented 3 years ago

Currently the ELECTRONPDF_WINDOW_LIFE_THRESHOLD environment variable can be set to override the default 5 minute timeout for when a window is assumed to be locked up and is forcefully purged.

An additional option is required to set this on a window by window basis, that can be specified as part of the exportJob options.