middletree — 2008-10-06T16:51:54-04:00 — #1
If you create an HTML link to another HTML page, you can link to a particular place on that page by using an anchor. In this case, I will be linking to a 16-page PDF. When users open the link in IE 6 or Firefox 3, the browser opens it for them and they can view it in the browser.
Of course, this opens the file up in Page 1. Is there a way to code the link so that it opens the PDF file to, say, page 7?
eruna — 2008-10-06T21:28:59-04:00 — #2
web_design_perth — 2008-10-08T02:40:55-04:00 — #3
Out of interest, why do you need to do this?
middletree — 2008-10-08T08:05:17-04:00 — #4
I am working on an Intranet at a large company, and we have an online magazine for employees. The boss of a certain department wanted to link to a certain article from his department's home page.
dan_schulz — 2008-10-08T13:38:16-04:00 — #5
The best thing to do if you're going to link to the article is to put a Web page version of the article on the site. Failing that, extract the article from the PDF and create a separate PDF file for that article.
zhittle — 2008-10-17T14:04:34-04:00 — #6
Does linking to filename.pdf#page=7
black_max — 2008-10-17T22:42:30-04:00 — #7
No, because a PDF file does not operate under HTML parameters. Adobe Reader (or FoxIt, or whatever PDF reader you use), opens PDF files in a separate window of your browser (or standalone). PDF and HTML files are apples and oranges.
felgall — 2008-10-17T23:33:53-04:00 — #8
There is a way to do it provided that you are running a recent version of Acrobat and have defined the appropriate points in the document where you want to open to. I can't remember the exact details as I was investigating how to do it about a year ago and the version of Acrobat that we had available was 6 and the earliest version to support this was 7. The terminology is somewhat different from the web terminology for the same thing but if you search the Acrobat help you should be able to find the instructions on how to set it up.
black_max — 2008-10-18T14:51:44-04:00 — #9
Stephen, this is interesting and potentially quite useful...though all the users with versions of Acrobat earlier than 7, and non-Adobe users, would be left behind.
acquiesce — 2008-10-21T08:55:15-04:00 — #10
Here it is for anyone interested:
Link from an HTML page to a specific page in PDF file .
Looks fairly standard from what I can see, very similar technique to using named anchors in HTML files. Useful to know though.
Only works for Acrobat 7x, so I presume any versions prior to this will just default to the 1st page... can't confirm this though.
wildsue — 2008-10-23T01:17:57-04:00 — #11
It would work, if the pdf document would be opened within the browser. I tested this method some time ago. But today most browsers open the pdf's with acrobat reader - and there ends the power of our html
perfectionist121 — 2008-10-24T11:00:48-04:00 — #12
Does this hold true even if you follow the linking instructions direct from Adobe? (Linked above my Acquiesce.)
wildsue — 2008-10-25T07:30:00-04:00 — #13
Your right, unfortunately the new browsers doesn't listen anymore to that commands.
It's really a good time ago that I tested these functions, they worked all (page, pagemode, toolbar and so on). But now...
But I didn't try out the anchor like described by Adobe. Did anyone else?