Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Group!

Could someone please assist with this question?

I am looking for HTML or JavaScript Code to create links on several HTML pages to specific pages in one huge PDF file, which needs to open in one designated target window.

using the target="_blank" method is not an option, as it would start as many separate sessions with the same huge PDF file.

I have tried the following:

<a href="path-to-file.pdf#page=3" target="_catalog">Intro</a>
<a href="path-to-file.pdf#page=7" target="_catalog">Chapter 1</a>

This fails in IE8. The first page opens in FF5, but when I click on the other link, it does not move to the targeted page number unless I click on reload.

Is there a JavaScript method for this? I have also looked into an <iframe> solution but have not found one where I could feed the targeted PDF page as a child page into a parent HTML file. The PDF otherwise loads easily into a page with <iframe> otherwise.

I have tried some in the JavaScript Visual Quick Guide, but they do not work. If any of you have any suggestion or working solution, please let me know. Thank you in advance!

--Arjun
Posted
Updated 9-Aug-11 15:35pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900