Click here to Skip to main content
11,714,345 members (80,938 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Javascript PDF Target
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)
Edited 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
0 Sergey Alexandrovich Kryukov 420
1 Maciej Los 229
2 Richard MacCutchan 220
3 OriginalGriff 170
4 F-ES Sitecore 140
0 Sergey Alexandrovich Kryukov 545
1 CHill60 375
2 Maciej Los 324
3 Richard MacCutchan 310
4 OriginalGriff 260

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2015
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