google-code-export / firefox-mac-pdf

Automatically exported from code.google.com/p/firefox-mac-pdf
1 stars 0 forks source link

Support PDFs within Frames #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a PDF is displayed within a frame:

1. The PDF doesn't display properly.
2. Search no longer works.
3. It is not possible to save or print the PDF

Original issue reported on code.google.com by colesbury@gmail.com on 2 Jul 2008 at 3:45

GoogleCodeExporter commented 9 years ago
Example: https://www.misumiusa.com/PDFViewer.aspx?Metric=true2008&Page=600

Original comment by colesbury@gmail.com on 2 Jul 2008 at 3:45

GoogleCodeExporter commented 9 years ago
I've noticed that the pdf plugin doesn't seem to work with the iframe on my page
either. Anybody have advice on a temporary workaround? I'd like to make all the 
links
within the iframe target _top, but since I'm loading an external page in my 
iframe, I
don't have direct control over the links. My page is at 
http://mclaypool.ravenshield.com

Original comment by noxl...@gmail.com on 2 Jul 2008 at 7:49

GoogleCodeExporter commented 9 years ago
noxlady, the problem with the plugin at the moment for your page is that the 
pdf goes
off the bottom of the page which the plugin doesn't handle correctly at 
present. A
very temporary workaround I think would be to add the height attribute to your 
iframe
so that the whole iframe is on the screen. 

Colesbury, that example embedded pdf is confusing for the display issue I 
think. I
messed around with it for a while until issue 34 was posted that made the 
problem on
that page clear.

Original comment by chrisw...@gmail.com on 2 Jul 2008 at 9:37

GoogleCodeExporter commented 9 years ago
Hey, you're right! I changed the height from 1500px to 400px, and like magic, 
the pdf
loaded! Then if I drag the bottom of the window above the bottom of the iframe, 
&
reload, the pdf disappears.

Unfortunately, I had the height set at 1500px so the calendar would fit without
scrolling. That way I have only one set of vertical scroll bars on my page, not 
two
(so ugly!). Rock and a hard place -- though the pdf shows up, now I have nested
scrolling, and it only shows up when firefox has at least 600px of vertical 
space in
the window (200px header + 400px iframe). Alas, though the fix works as 
advertised,
it doesn't really "work" for me :(

Chriswegg, are you involved in the troubleshooting of the plugin? Any idea if 
this
plugin is getting worked on, or if it's going to languish like so many other
promising Google betas? I hope it's getting worked on -- it's really awesome 
that
somebody finally figured out how to view pdfs inline on intel mac firefox!!!

On a completely separate note, does anybody have a flipping *clue* how to get an
iframe to adjust its size based on content from an external site whose code I 
don't
control??? I've been looking and looking, and it's got me stumped! Cause 
setting my
iframe height to 1500px is a kludgy and obviously excessive workaround (till I 
add
some more calendar events, anyhow) but I'm really trying to avoid those ugly 
nested
scroll bars!

Original comment by noxl...@gmail.com on 2 Jul 2008 at 10:24

GoogleCodeExporter commented 9 years ago
noxlady, I expect that the issue will be fixed in the next release so I wouldn't
worry too much. Once its fixed you shouldn't need to specify a height it should
display fine.

This isn't a google project, google is just the project host. Colesbury is the 
sole
developer. What you see on these issues is the extent of my involvement, I just 
use
pdfs a lot for work and before this plugin was forced to use safari when on OS X
because of that. And it won't languish I think - colesbury has been has been 
doing a
great job fixing the problems, most of the remaining issues like yours are 
relatively
easy to fix at present, and it seems it's already used by quite a few people.  

Original comment by chrisw...@gmail.com on 3 Jul 2008 at 12:11

GoogleCodeExporter commented 9 years ago
I was able to tweak with it to get the PDF not to pop out of the iframe:

http://pubget.com/site/article/11500473

However, it can pop out from time to time. I had to set the body to 100% height 
and then make sure all the 
height worked and made the iframe 95%. This is not ideal as you loose space at 
the bottom for no good reason 
but it does work around the PDF popping out of the iframe most of the time.

Original comment by ian.con...@gmail.com on 13 Aug 2008 at 9:51

GoogleCodeExporter commented 9 years ago
Since most of the comments so far have focused on issue #1, I'd like to address 
#3
quickly. I do a lot of research in academic journals online, and for some 
reason many
of the databases display their PDFs within frames. Most of the time, I want to 
save
the PDF for later reading, but with a frame around it, I can't.

I thought to bring up the contextual menu and find a "Show Only this Frame" 
option,
but of course since the frame contains only a PDF, I don't get the browser's
contextual menu, just the plug-in's.

I'd be equally happy with a "Save PDF as…" option as with a "Send to Preview" 
or
"Print…" option.

Original comment by devan.go...@gmail.com on 21 Aug 2008 at 11:43

GoogleCodeExporter commented 9 years ago
PDFs within frames now display properly and can be opened with Preview and 
saved.

I'm marking this issue as fixed, although searching PDFs within frames still 
does not work.  I think this is a rare 
use case and can be worked around by opening the PDF in Preview. 

Original comment by colesbury@gmail.com on 29 Dec 2008 at 11:55