Skip to content

PDF Viewer links off by one page in PDF js #7243 #7246

@santhoshdevadiga

Description

@santhoshdevadiga

Link to PDF file (or attach file here):

Configuration:
Web browser and its version: Firefox 43.0.4
Operating system and its version: Windows 8
PDF.js version: v1.4.20

Steps to reproduce the problem:

  1. Open pdf file in html page using html Object tag
  2. Click on page number link(hyperlink) which is show incorrect page number of PDF files in pdf.js.
    pdf_js_error1

What is the expected behavior? (add screenshot)
It is expected that clicking the links will move to the correct page in the PDF, however the pages seem to be offset by 1 page.

What went wrong? (add screenshot)
pdf_js_error1

Which is working fine when i open same pdf file in firefox with pdf.js(in URL sample.
pdf#page1 or sample.pdf#page=1) and in Adobe reader(chrome)

pdf_js_success1
pdf_js_success2

I created in jsfiddle but i am not able to include pdf files

https://jsfiddle.net/santhoshcd/9ngm5Lke/

I checked pdf.js https://github.com/mozilla/pdf.js/issues/7154 but i did not get any solution for this problem. They are telling there is a problem in PDF file, if there is a problem then how Same pdf file is working fine in adobe reader and firefox with PDF.js(sample.pdf#page=3 or sample.pdf#page=4).

Please give me solution for this issue.

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions