Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Pick up where you left off #19094

Closed
Abdelaziz18003 opened this issue Nov 23, 2024 · 2 comments
Closed

[Feature]: Pick up where you left off #19094

Abdelaziz18003 opened this issue Nov 23, 2024 · 2 comments

Comments

@Abdelaziz18003
Copy link

Abdelaziz18003 commented Nov 23, 2024

Is the feature relevant to the Firefox PDF Viewer?

Yes

Feature description

As someone who uses Firefox (which uses PDF.js under the hood) as the default PDF viewer on my daily taks, I am missing the feature of picking up where I left off, where the PDF file opens on the page I closed it on last time. This will be a really usefull feature when reading long books inside Firefox and other products using this library.

I don't know if there are any relevant workarounds for now, but I was thinking of creating an extension that saves the current scroll value in localstorage and automatically scrolls to it in the next time the same file is opened.

Other PDF viewers

Edge has this feature by default, if you open a PDF, scroll down and closed it, then re-open it, you will land on the same page you left off.

I am new to this project. However, I have experience with Javascript and I am open to contribution if given some guidance.

Regards

@Snuffleupagus
Copy link
Collaborator

The GENERIC viewer already supports this, through the use of localStorage.
However, the Firefox PDF Viewer purposely uses sessionStorage; please refer to PR #4559.

@Abdelaziz18003
Copy link
Author

Got it, thanks @Snuffleupagus for the quick reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants