Jul 17, 2009 6:33 PM
Links to named destinations in IFRAME positioning the PDF a page and half past
-
Like (0)
I created a PDF file w/ named destinations so that I can allow the Internet user w/ browser and Acrobat Reader plug-in to link to specific sections of the PDF. The zoom is set to Fit Horizontally, and the position is the top of the page in my example PDF. I used Acrobat Pro 8.1 to create the PDF.
Problem is when trying to load the PDF into an IFRAME, displayed with the named destination using a tag like:
<a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1000#view=FitH&named dest=Mission" target="myframe" >Click 1 </a>
When clicking on the link to the named destination, the .pdf is loaded or reloaded into an IFRAME and the page with the named destination is usually correctly displayed. Only in IE 6,7,8 the pdf will frequently (about 1 out of 4 times) be positioned a page and a half past the named destination. Clicking to a different link, and then back to the original link will usually reposition the PDF correctly. Chrome and Firefox always position the PDF exactly to the named destination. I'd like to know how to create the named destination so that it will always be positioned correctly, or to use a different link that will always position correctly. I'm using Reader 9.1.2
HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</head>
<body>
<p>
<a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1000#view=FitH&named dest=Mission" target="myframe" >Click 1 </a> <p>
<a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1100#view=FitH&named dest=Highlights" target="myframe">Click 2 </a> <p>
<a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1200#view=FitH&named dest=Trustees" target="myframe">Click 3</a> <p>
<a href="http://ekensqldev5/ePadmin/documents/Raw.pdf?rand=1201#view=FitH&named dest=Statement_of_Operations" target="myframe">Click 4</a> <p>
<a href="http://intranet" target="myframe">Click 5</a> <p>
<iframe name="myframe" width="100%" height="800">
</iframe>
</body>
</html>
I'm working with Lyle on this, and I have done some additional testing.
What I found is that the positioning for named destinations seems to work ok with IE8 when the html page and pdf file are located on one of our external web servers (rather than local intranet servers).
I am wondering if this is due to the latency involved in downloading the file, allowing the DOM to register the plugin?
I've posted a query at Microsoft's forum, but they are pointing me back to Adobe...saying they cannot know how the plugin handles rendering...even though I responded that it seems to work across the board with Firefox and Chrome.
Here is my thread in the Microsoft forum.
Erratic Behavior with PDF named destinations
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).