PDF file into cell of table

J

Joe Boy

Is it possible to load a PDF file into the cell of a table?

If so how?

Thanks for any info.
 
N

Nik Coughlin

Joe Boy said:
Is it possible to load a PDF file into the cell of a table?

If so how?

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
 
J

Jonathan N. Little

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

Must be your Firefox, no problem with mine nor with SeaMonkey. Object
does need either width and height attributes or css styling...
 
N

Nik Coughlin

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...

Yeah, I set it in the CSS. It's just this machine that it crashes on I
think, I tried it on another and there was no problem. Firefox crashes a
lot on this box for some reason, though 99% of the time it's on closing it
so it's no big deal
 
A

Adrienne Boswell

Is it possible to load a PDF file into the cell of a table?

If so how?

Thanks for any info.

Please think twice about doing that. I have my browser set to open all
PDF's with the Foxit Reader, not in the browser. Authors have a tendency
to put links to PDF documents in a new window, which breaks my backbutton,
and once I have finished reading the document in my reader, I go back to
the browser, and there is a blank page. I hate 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.
 
J

John Hosking

Adrienne said:
Gazing into my crystal ball I observed Joe Boy
writing in
Please think twice about doing that. ...

Or thrice.
... 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.

....a circumstance made even *more* dreadful when the reader is Adobe Reader.
 
A

Adrienne Boswell

Gazing into my crystal ball I observed John Hosking
... The other thing that

...a circumstance made even *more* dreadful when the reader is Adobe
Reader.

One of the reasons why I use Foxit Reader. It loads super fast because
there is no Adobe splash screen, and it doesn't try to load itself at
startup (I use Startup Monitor to prevent these kind of things anyway).
 
D

dorayme

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.
 
A

Adrienne Boswell

Gazing into my crystal ball I observed dorayme
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.

The documents I open in PDF are usually something that I want to save,
or maybe make notes for myself. I prefer to open PDF's in an
application. I use Foxit Reader, and it's very, very fast. It's
faster, at least on my system, to open a document in the reader than it
is for the browser. Of course, if I am Googling something that's PDF, I
almost always view the html version.
 
J

Joe Boy

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

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.

Cheers .............
 
D

dorayme

....
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.

Just btw, what is in your PDF?
 
J

Jonathan N. Little

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>
 
J

Joe Boy

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>

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>
 
J

Jonathan N. Little

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>

Sort of... compare with any other browser. If the image is say 100 x 100
pixels IE will display the image as 100 x 100 inside a 1500 x 1000 box
whereas other browsers will correctly scale the image to 1500 x 1000
same as with the IMG element.
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,220
Latest member
AugustinaJ

Latest Threads

Top