Click here to Skip to main content
Rate this: bad
good
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!
 
--Arjun
Posted 9-Aug-11 16:21pm
(unknown member)
Edited 9-Aug-11 16:35pm
v3

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

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 BillWoodruff 220
4 Mathew Soji 195
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,817
2 DamithSL 5,461
3 Manas Bhardwaj 4,946
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 9 Aug 2011
Copyright © CodeProject, 1999-2014
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