0

One way by which we can call a pdf inside a frame is by directly seeting the src property..

<frame src="xyz.pdf" .../>

Is there any other way (apart from frame/object/embed) to call the pdf within the frame...something like the frame actually has some html code and within that pdf is called...

I know sounds a bit funny, but is there any way...I need this as I am trying to fix a scrolling issue for pdf within a frame for iPad?

Thank you.

copenndthagen
  • 49,230
  • 102
  • 290
  • 442

1 Answers1

0

First of all, avoid frames when you can. It's always bad practice.

Here is the source for a very simple HTML page that would redirect to the PDF after one second:

<html>

<head>
    <meta http-equiv="refresh" content="1;url=xyz.pdf">
</head>

<body>
</body>

</html>

I don't understand how this would solve your scrolling issue, but it will definitely do what you ask for in your question.

Karl Laurentius Roos
  • 4,360
  • 1
  • 33
  • 42
  • You code will a) not work in my firefox, b) break the back button - when it comes to PDF, (i)frames are VERY MUCH better than anything else. – mplungjan Apr 28 '11 at 18:33
  • @mplungjan Are you serious? In what way are frames better than ANYTHING? – josh.trow Apr 28 '11 at 19:06
  • In the case of embedding pdfs. iframes and frames reacts much more controlled and reliant than other ways of showing pdf. meta refresh is so 1994 and currently does not work at all in any firefox I have had since version 3,x – mplungjan Apr 28 '11 at 20:20