By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,676 Members | 1,759 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,676 IT Pros & Developers. It's quick & easy.

Framed pdf

P: n/a
Greetings,

I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).

Thank you,
Jul 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 19 Apr 2004 09:40:40 -0700, Erik Meyer <ne*********@yahoo.com> wrote:
Greetings,

I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).

Thank you,


This is one of the biggest problems with frameset. What you ask is damn
near impossible, if not actually so.

In order to do this you need to create a customized frameset which loads
the PDF instead of whatever the index frameset loads. Then set the server
to redirect calls for that pdf to instead open the new frameset document.
Of course, you'll have to figure out a way to prevent your own links to
that document from behaving similarly. I haven't a clue how to do that.
Jul 20 '05 #2

P: n/a
Erik Meyer <ne*********@yahoo.com> wrote:
I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).


See http://www.htmlhelp.com/faq/html/fra...#frame-context

But keep in mind that not all browsers are configured to display PDF
documents in a browser window. Some feed the document to Acrobat Reader or
some other helper app.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Experience is what allows you to recognize a mistake when you make it again."
Jul 20 '05 #3

P: n/a
Erik Meyer wrote:
I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).


If you want a HTML document to be "auto-framed", then you could use a piece
of JavaScript. But with a PDF file, the only solution I can imagine at this
moment is to use a rewrite rule. For exemple :

http://myserver/docs/my-pdf.pdf

will be transformed in :

http://myserver/navig/my-frameset.php?frame=my-pdf.pdf

--
Pour me répondre par mail privé, merci de supprimer _NOSPAM_ de mon
adresse.

Un grand merci à OE Quote Fix pour rendre OE utilisable :)
=> http://home.in.tum.de/~jain/software/quotefix.php

Jul 20 '05 #4

P: n/a
/Erik Meyer/:
I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).


Somewhat similar to the JavaScript solution, but still not universal
is to setup to serve the frame set when one request the desired URL:

http://yoursite.com/thefile.pdf

The frame set itself includes the same URL as the source for the
"PDF frame" but then the UA would send 'Referrer:
http://yoursite.com/thefile.pdf' with that request and the server
should send the PDF itself instead of the frame set.

It is obvious this solution would not work if the UA doesn't send
(correct) 'Referrer' header, but it doesn't rely on client side
JavaScript.

--
Stanimir
Jul 20 '05 #5

P: n/a
"Pierre Goiffon" <pg******@free.invalid> schrieb im Newsbeitrag
news:40*********************@nnrp1.numericable.fr. ..
Erik Meyer wrote:
I was wondering how to open a framed pdf document correctly. We have
a pdf file that is called in a framed document. When the person
clicks on a link in our site to the pdf, the frame appears and the pdf
appears within the correct frame. Now, we would like to have the pdf
and the frame open up together when somebody from the internet does a
search for this pdf and clicks on the search engine link (ex. google).
If you want a HTML document to be "auto-framed", then you could use a

piece of JavaScript. But with a PDF file, the only solution I can imagine at this moment is to use a rewrite rule. For exemple :

http://myserver/docs/my-pdf.pdf

will be transformed in :

http://myserver/navig/my-frameset.php?frame=my-pdf.pdf


Of course you will have to use a name different from the pdf's actual file
name, otherwise you have a reference from the frameset to the file which
will be transformed, too, and the frameset will load itself eternally.

--
Markus
Jul 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.