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

Reopen pdf on page it was closed. #24

Open
rajvijay0902 opened this issue Oct 7, 2020 · 6 comments
Open

Reopen pdf on page it was closed. #24

rajvijay0902 opened this issue Oct 7, 2020 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@rajvijay0902
Copy link

How can I open a pdf to a particular page .

@rajvijay0902
Copy link
Author

when i use scroll to (x,y) .....i get what i want but the part before (x,y) is removed from pdfview.Pls help.

@Dmitry-Borodin
Copy link
Owner

Good usecase, this need to be fixed (scroll to x,y should allow us to scroll back to beginning).
I didn't reproduce it.

@Dmitry-Borodin Dmitry-Borodin added the help wanted Extra attention is needed label Oct 7, 2020
@rajvijay0902
Copy link
Author

currently is there a way to reopen pdf to a position at which it was closed?

@Dmitry-Borodin
Copy link
Owner

currently is there a way to reopen pdf to a position at which it was closed?

No, this functionality is not implemented at the moment.
If you want to implement it - we can discuss of how to do it better.

@Dmitry-Borodin
Copy link
Owner

Fixing scroll to would be the best solution I think.

@KnIfER
Copy link

KnIfER commented Dec 18, 2020

Two strategy of page navigation, one for jumping to page, and one for restoring.

Jumping to page : refer to the ezpdfreader, caclulate the offset of current page and replace the current page with the target page, the page offset remains unchanged.

Saving & Restoring : just save the scale of the viewer, the current page index and it's offset.

Better to save to database and use the file name as the retrival key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants