|
-
Oct 3rd, 2005, 07:05 AM
#1
Thread Starter
New Member
html link to PDF anchor
Can I use something similar to
<a href="test.htm#part3">go to part 3</a>
for a pdf document?
So to create a link to opens PDF document at a certain page?
Thanks
-
Oct 3rd, 2005, 08:35 AM
#2
Re: html link to PDF anchor
Last edited by mendhak; Apr 11th, 2007 at 10:26 AM.
-
Oct 12th, 2005, 07:42 AM
#3
Member
Re: html link to PDF anchor
Here is a function that I wrote (not really much of a function, because you could easily just do it in html, but then it requires more copying and pasting) which helps me load a specific page of a PDF file.
Code:
<!-- <script type="text/javascript">
function pagechange(page)
{
var beforepage="../../desiredfile.pdf#page="
self.location.href=beforepage + page;
}
</script> -->
Then just create links for it:
Code:
<a href="#" onClick="pagechange(1)">1</a> //page 1 of PDF file
<a href="#" onClick="pagechange(2)">2</a> //page 2 of PDF file
<a href="#" onClick="pagechange(3)">3</a> //page 3 of PDF file
<a href="#" onClick="pagechange(4)">4</a> //page 4 of PDF file
<a href="#" onClick="pagechange(5)">5</a> //page 5 of PDF file
and of course you should probably make it load in a seperate window/frame, so make sure to use the target if you don't want to change the active window.
Last edited by konithomimo; Oct 12th, 2005 at 07:52 AM.
-
Apr 9th, 2007, 01:56 PM
#4
New Member
Re: html link to PDF anchor
R u trying to create anchor within the pdf document and link it from html?
U can define a destination and then create bookmark for it. You should then be able to link from html to the certain point of the pdf document.
-
Apr 11th, 2007, 10:28 AM
#5
Re: html link to PDF anchor
http://www.sitename.com/abc/filename.pdf#page7
I believe I saw something like this which can be used. However, this thread is 2 years old.
-
May 18th, 2010, 10:27 AM
#6
New Member
Re: html link to PDF anchor
To make this work, in Adobe Acrobat Professional (I use Adobe Acrobat 9 Pro) create a 'Destination link' --this is like bookmarking a page. In Adobe Acrobat Pro, go to 'View > Navigation Panels > Destinations.' In the Destinations panel, go to the upper left and click the wheel-like icon and select the 'New Destination' option. Name your Destination -- again, this is like your bookmark that you will anchor to.
After setting your destination, save your changes in the PDF. Upload the PDF. You can now anchor to your saved destination/bookmark by adding '#' at the end of your link and your destination name.
Example: http://www.sitename.com/abc/filename...estinationname
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|