{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/pdf.js/issues/7246","repository_url":"https://api.github.com/repos/mozilla/pdf.js","labels_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7246/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7246/comments","events_url":"https://api.github.com/repos/mozilla/pdf.js/issues/7246/events","html_url":"https://github.com/mozilla/pdf.js/issues/7246","id":150813860,"number":7246,"title":"PDF Viewer links off by one page in PDF js #7243","user":{"login":"santhoshcd","id":15076081,"avatar_url":"https://avatars.githubusercontent.com/u/15076081?v=3","gravatar_id":"","url":"https://api.github.com/users/santhoshcd","html_url":"https://github.com/santhoshcd","followers_url":"https://api.github.com/users/santhoshcd/followers","following_url":"https://api.github.com/users/santhoshcd/following{/other_user}","gists_url":"https://api.github.com/users/santhoshcd/gists{/gist_id}","starred_url":"https://api.github.com/users/santhoshcd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santhoshcd/subscriptions","organizations_url":"https://api.github.com/users/santhoshcd/orgs","repos_url":"https://api.github.com/users/santhoshcd/repos","events_url":"https://api.github.com/users/santhoshcd/events{/privacy}","received_events_url":"https://api.github.com/users/santhoshcd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T10:20:29Z","updated_at":"2016-04-25T10:20:29Z","closed_at":null,"body":"Link to PDF file (or attach file here):\r\n\r\nConfiguration:\r\n  Web browser and its version: Firefox 43.0.4\r\n  Operating system and its version: Windows 8\r\n  PDF.js version: v1.4.20\r\n\r\nSteps to reproduce the problem:\r\n1. Open pdf file in html page using html Object tag \r\n2. Click on page number link(hyperlink) which is show incorrect page number of PDF files in pdf.js.\r\n![pdf_js_error1](https://cloud.githubusercontent.com/assets/15076081/14780879/c2ebddf2-0afc-11e6-94b5-714a1f8baa8f.PNG)\r\n\r\n\r\nWhat is the expected behavior? (add screenshot)\r\nIt 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.\r\n\r\nWhat went wrong? (add screenshot)\r\n![pdf_js_error1](https://cloud.githubusercontent.com/assets/15076081/14780889/d1d8521e-0afc-11e6-888f-fd78f22c0852.PNG)\r\n\r\nWhich is working fine when i open same pdf file in firefox with pdf.js(in URL sample.\r\npdf#page1 or sample.pdf#page=1) and in Adobe reader(chrome)\r\n\r\n![pdf_js_success1](https://cloud.githubusercontent.com/assets/15076081/14780940/11f84480-0afd-11e6-85fc-0ca5b2a97556.PNG)\r\n![pdf_js_success2](https://cloud.githubusercontent.com/assets/15076081/14780941/13d0926c-0afd-11e6-9aa7-843276e89eae.PNG)\r\n\r\nI created in jsfiddle but i am not able to include pdf files\r\n\r\n[https://jsfiddle.net/santhoshcd/9ngm5Lke/](url)\r\n\r\n\r\nI checked pdf.js [https://github.com/mozilla/pdf.js/issues/7154](url) 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 Abode reader and firefox with PDF.js(sample.pdf#page=3 or sample.pdf#page=4).\r\n\r\nPlease give me solution for this issue.\r\n\r\n\r\n\r\n\r\n\r\nLink to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):"}}