J
Joe Boy
Is it possible to load a PDF file into the cell of a table?
If so how?
Thanks for any info.
If so how?
Thanks for any info.
Joe Boy said:Is it possible to load a PDF file into the cell of a table?
If so how?
Nik said:I'm not sure why you would want to, but I tried it out of curiosity:
<table>
<tr>
<td>
<object data="test.pdf" type="application/pdf">
<a href="test.pdf">My Test</a>
</object>
</td>
</tr>
</table>
I was able to embed a pdf inside a table cell, works in IE, Opera,
Safari, Chrome et al but on my computer it crashes Firefox 3 completely
Jonathan N. Little said:Must be your Firefox, no problem with mine nor with SeaMonkey. Object does
need either width and height attributes or css styling...
Is it possible to load a PDF file into the cell of a table?
If so how?
Thanks for any info.
Adrienne said:Gazing into my crystal ball I observed Joe Boy
writing in
Please think twice about doing that. ...
... The other thing that
gets me is authors who do not tell you that the document IS a PDF, so I am
surprised to see my reader firing up.
... The other thing that
...a circumstance made even *more* dreadful when the reader is Adobe
Reader.
Adrienne Boswell said:I have my browser set to open all
PDF's with the Foxit Reader, not in the browser.
Sounds inconvenient. Are there no tiny and efficient PDF plug-ins for
browsers in the non Mac world? The one I have opens any pdf link in the
browser and there is a simple button to further open in a stand alone
PDF Reader if you so desire. For quick perusals I have found browser is
best.
I'm not sure why you would want to, but I tried it out of curiosity:
<table>
<tr>
<td>
<object data="test.pdf" type="application/pdf">
<a href="test.pdf">My Test</a>
</object>
</td>
</tr>
</table>
I was able to embed a pdf inside a table cell, works in IE, Opera, Safari,
Chrome et al but on my computer it crashes Firefox 3 completely
But I'm not sure that I like the look of it now so I am thinking of
converting the PDF file to either an image or HTML.
Anyway, an interesting exercise and, again, many thanks for all the
comments.
Joe said:Thanks for all the comments.
As to why - I wanted to have a navigation menu in a narrow table
column/cell on the left and, for one option in the menu, a pdf file
would be loaded into the other cell on the right. That way users could
navigate back to other pages from the menu on the left after viewing
the PDF file.
I tried out your suggested code and included the width and height
atributes but nothing worked.
I had Foxit reader set up as default PDF reader so I changed that to
Adobe and the code worked OK in firefox but not in IE 7!
But I'm not sure that I like the look of it now so I am thinking of
converting the PDF file to either an image or HTML.
Anyway, an interesting exercise and, again, many thanks for all the
comments.
IE's object support is quirky at best, regardless of the media type...
<object data="sample.jpg" type="image/jpeg">
Oops, lack of browser support!
</object>
Joe said:On Wed, 05 Nov 2008 10:01:17 -0500, "Jonathan N. Little"
No - that code did not work for me in IE7 but adding attributes for
height and width as follows did work:-
<object data="aample.jpg" type="image/jpeg" title="sample"
height="1500" width="1000">
</object>
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.