Click here to Skip to main content
13,092,862 members (97,351 online)
Rate this:
Please Sign up or sign in to vote.
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!

Posted 9-Aug-11 15:21pm
(unknown member)
Updated 9-Aug-11 15:35pm

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100