Closed Bug 930023 Opened 12 years ago Closed 10 years ago

pdf.js ignores zoom= option in hash when there is no page=

Categories

(Firefox :: PDF Viewer, defect, P4)

24 Branch
x86_64
All
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: jennifer.mankin, Unassigned)

References

Details

(Whiteboard: [bugday-20131028][pdfjs-c-feature][pdfjs-d-good-beginner-bug][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/3864)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130910160258 Steps to reproduce: Point browser to a PDF file and add "#zoom=[n]" to the end of the url... Actual results: PDF loads in pdf.js with "Automatic Zoom" Expected results: According to http://www.askapache.com/javascript/pdf-js.html#Options_after_the-s0, this is supposed to work.
Confirmed with 2013-10-28-03-02-05-mozilla-central-firefox-27.0a1.en-US.linux-x86_64 (#page=<n> works, at least when added after the PDF loads).
Component: Untriaged → PDF Viewer
OS: Windows 7 → All
Whiteboard: [bugday-20131028]
Status: UNCONFIRMED → NEW
Ever confirmed: true
It's ignored when "page=" is not specified, e.g. http://www.education.gov.yk.ca/pdf/pdf-test.pdf#page=1&zoom=180 works
(In reply to Yury Delendik (:yury) from comment #2) > It's ignored when "page=" is not specified, e.g. > http://www.education.gov.yk.ca/pdf/pdf-test.pdf#page=1&zoom=180 works Confirmed (only when the params are added/changed after the PDF loads). In the list in https://github.com/mozilla/pdf.js/wiki/Viewer-options, "zoom" is a sub-item of "page".
Summary: pdf.js ignores zoom option in hash → pdf.js ignores zoom= option in hash when there is no page=; http://www.askapache.com/javascript/pdf-js.html#Options_after_the-s0 doesn't mention that
Priority: -- → P4
Whiteboard: [bugday-20131028] → [bugday-20131028][pdfjs-c-feature][pdfjs-d-good-beginner-bug]
Whiteboard: [bugday-20131028][pdfjs-c-feature][pdfjs-d-good-beginner-bug] → [bugday-20131028][pdfjs-c-feature][pdfjs-d-good-beginner-bug][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/3864
Summary: pdf.js ignores zoom= option in hash when there is no page=; http://www.askapache.com/javascript/pdf-js.html#Options_after_the-s0 doesn't mention that → pdf.js ignores zoom= option in hash when there is no page=
pdfjs always goes to page 1 with no zoom when called from the command line despite any parameters. $ firefox file:///mnt/usb/cf/index.html%3Fartifact_id=1215#page=11&zoom=150,56,762 is just like $ firefox file:///mnt/usb/cf/index.html%3Fartifact_id=1215
Status: NEW → RESOLVED
Closed: 10 years ago
Depends on: 947260
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.