-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Open parameter "page" doesn't work with large document #3949
Comments
Please provide at least a link to a PDF file demonstrating the issue. Preferably, you should also provide information regarding your configuration, see: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#wiki-issue. |
I can't provide a link to this document, it's in an intranet. Sorry. But I found a document with a similar effect: http://www.nikonusa.com/pdf/manuals/noprint/D7000_ENnoprint.pdf#page=214 If I load this file it jump to the wrong page too. |
I have similar problem too. |
@drxx physical page 214 or page that marked as 214? |
So far works for me, it jumps to the page 214 which is marked as 194 on the "paper". |
My destination in the document is the page number 132. Thats tthe 152th page in the document. The parameter was "page=214". The page number on the page/paper (132) is not relevant, it's just a text. First time I load the document it shows (with page=214), the head line shows "Page: 214 of 348". When I scroll just a few pixel with my mouse the head line changes to "Page: 152 of 348". So page 152 was shown instead of 214. Afterwards with a new download (not just click on the button "reload") it's the same problem. Pressing just "reload" does not show the problem. |
Looks like a dup of https://bugzilla.mozilla.org/show_bug.cgi?id=939753 . I think it's related to how page holders initially set/rotated. |
That's right. It seems to be the same error. Just 3 days old. |
@drxx Is this still an issue for you with the latest viewer at http://mozilla.github.io/pdf.js/web/viewer.html? I can't seem to be able to reproduce the problem. |
The main issue, as reported, should already be fixed. That said, there is still a slight issue with this in certain circumstances. When opening: http://www.nikonusa.com/pdf/manuals/noprint/D7000_ENnoprint.pdf#page=214, the right page does become visible, but it's slightly scrolled down. This is how it ideally should look: This only happens in some files though, when the first page has different dimensions or rotation than the rest of the pages in the file. (Since all pages are initialized with the viewport of the first page: https://github.com/mozilla/pdf.js/blob/master/web/viewer.js#L853-L869.) |
Closing as fixed. The original issue is fixed; the scroll issue is really minor and can be fixed later on if someone finds that necessary. |
Hello!
I have a document in PDF format with 400 pages. I've called the URL like ...document.pdf#page=214. pdf.js opens the document and shows page 250 instead. The navigation bar still said "214/400". Start scrolling the navigation bar was changed to "250/400".
cu
The text was updated successfully, but these errors were encountered: