Add option to automatically close all opened PDFs on application exit
First of all, thank you for developing such a lightweight, fast, and convenient PDF reader.
I have a feature request that I hope the team could consider.
Current behavior:
I have enabled both "Remember these settings for each document" and "Remember opened files" in the settings, so that the reader can track my reading progress for each PDF file.
In daily use, this works fine when I switch between two different books. The last viewed page is correctly remembered when I close the application.
However, I usually close the entire application by clicking the "X" button in the top-right corner of the window, instead of closing each PDF tab individually before exiting. As a result, when I reopen the application later (e.g., by opening another PDF from Windows File Explorer), all previously opened PDFs (whose tabs were not closed manually) are reopened automatically. This causes two issues:
-
If some of those PDFs are large, application startup becomes significantly slower.
-
I often only want to focus on the current PDF file, not a pile of previously opened ones.
If I disable "Remember opened files", the startup behavior becomes clean (only the current PDF opens), but then the reading progress stops working for all files.
Requested feature:
I would like to see an additional option in the settings, such as:
"Close all opened PDFs when exiting the application"
Expected benefit:
With this option enabled, when I close the application (by clicking the window close button), all opened PDF tabs would be automatically closed. Then, the next time I open a PDF from Windows File Explorer:
Only that single PDF will be opened (fast startup, no clutter from previously opened files).
The reading progress would still be remembered and restored, because the "Remember these settings for each document" setting remains active.
This would give users the best of both worlds: fast startup for the current document, while preserving progress tracking for each file.
Thank you for considering this request. I really appreciate your work on this reader!
The starting with last session files is separate to remember files progress. set RestoreSession = false
so pre-release 3.7.x has a switch such that you can "save sessions via tabs" but with above not have them open on restart
@GitHubRulesOK Thank you for your quick reply!
I’ve set RestoreSession = false in the advanced options as you suggested. Now it works exactly as I hoped, the reading progress is still remembered, but only the current PDF opens on startup.
Thanks again for your help and for this great PDF reader! Closing this issue now.
I'm also confused by the behavior of setting both RememberOpenedFiles = true and RememberStatePerDocument = true.
RestoreSession is such an important option; it should be in the Options, not hidden in Advanced Options.