X
點擊此處開啟此網站的行動版。

技術支援討論區

Embed PDF not working windows10 firefox65 32bit

已張貼

It looks like windows10 firefox65 32bit displaying embedded PDFs does not work. there's no error in the console. you can test it here: https://pdfobject.com/

works fine in windows 7 32 and 64 bit, and windows 64 bit. this is causing huge issues with clients, please investigate urgently.

It looks like windows10 firefox65 32bit displaying embedded PDFs does not work. there's no error in the console. you can test it here: https://pdfobject.com/ works fine in windows 7 32 and 64 bit, and windows 64 bit. this is causing huge issues with clients, please investigate urgently.
WestEnd 60 個解決方法 5387 個答案

So what do you mean embedded pdf does not work? What is the error screenshot showing? I clicked on the link and it opened without problem so what was the problem that was to be showing?

So what do you mean embedded pdf does not work? What is the error screenshot showing? I clicked on the link and it opened without problem so what was the problem that was to be showing?

提出問題者

literally nothing happens, the frame where it should be remains blank, there are no console errors, no error messages nothing.

did you try that exact version on windows10?

literally nothing happens, the frame where it should be remains blank, there are no console errors, no error messages nothing. did you try that exact version on windows10?
cor-el
  • Top 10 Contributor
  • Moderator
17519 個解決方法 158412 個答案

No problems here with the test site you posted. I do see the PDF file in the frame.

Do you see this object in the Inspector?

No problems here with the test site you posted. I do see the PDF file in the frame. Do you see this object in the Inspector? *https://developer.mozilla.org/en-US/Tools/Page_Inspector

提出問題者

Hi all, thanks for helping. Before answering me can you please confirm that you're testing it using windows 10 firefox 65 32bit? The issue is ONLY on this version of windows and firefox, which is why it's such a pain!

Please see attached the screenshot

Hi all, thanks for helping. Before answering me can you please confirm that you're testing it using windows 10 firefox 65 32bit? The issue is ONLY on this version of windows and firefox, which is why it's such a pain! Please see attached the screenshot
cor-el
  • Top 10 Contributor
  • Moderator
17519 個解決方法 158412 個答案

Does this only happen with embedded PDF files or also if you open this PDF file in a separate tab?

Does this only happen with embedded PDF files or also if you open this PDF file in a separate tab?

提出問題者

doesn't work for neither :(

doesn't work for neither :(

提出問題者

how do we get this escalated to the dev team? it's a serious issue that causes huge blockers for end users

how do we get this escalated to the dev team? it's a serious issue that causes huge blockers for end users

提出問題者

Hey everyone, can someone help please? This is very problematic and I am not sure how else I can escalate this issue.

Hey everyone, can someone help please? This is very problematic and I am not sure how else I can escalate this issue.
jscher2000
  • Top 10 Contributor
8758 個解決方法 71655 個答案

Hi robtrip, I don't have 32-bit Firefox 65 to test in.

Is the problem system's PDF handling set to "Preview in Firefox" on the Options page? If it has a different setting, then the box will remain blank as in your screenshot.

See: View PDF files in Firefox


I'm not sure how the PDFObject script determines that it can embed or not embed in Firefox. It doesn't seem to account for this problem. Technically, the <embed> tag doesn't take fallback content, but if you shove some in, Firefox will show it. So one workaround that works in a simple test across Firefox/Edge/Chrome on 64-bit Windows would be:

Standard code:

// Embed the PDF
PDFObject.embed('pdf/sample-3pp.pdf', '#example1');

Workaround code:

function PDFwithFallback(url, target){
  var embedNode = PDFObject.embed(url, target);
  if (embedNode.nodeName == 'EMBED'){
    var fallback = document.createElement('p');
    fallback.innerHTML='Your browser does not support embedding this PDF. You can open it using <a href="' + embedNode.src + '" target="_blank">this link</a>.';
    embedNode.appendChild(fallback);
  }
}
// Embed the PDF
PDFwithFallback('pdf/sample-3pp.pdf', '#example1');

(My test process was to load the page, F12 to open the developer tools, remove the embed using the Inspector, then execute the workaround code using the Console.)

Hi robtrip, I don't have 32-bit Firefox 65 to test in. Is the problem system's PDF handling set to "Preview in Firefox" on the Options page? If it has a different setting, then the box will remain blank as in your screenshot. See: [[View PDF files in Firefox]] ---- I'm not sure how the PDFObject script determines that it can embed or not embed in Firefox. It doesn't seem to account for this problem. Technically, the &lt;embed> tag doesn't take fallback content, but if you shove some in, Firefox will show it. So one workaround that works in a simple test across Firefox/Edge/Chrome on 64-bit Windows would be: Standard code: // Embed the PDF PDFObject.embed('pdf/sample-3pp.pdf', '#example1'); Workaround code: function PDFwithFallback(url, target){ var embedNode = PDFObject.embed(url, target); if (embedNode.nodeName == 'EMBED'){ var fallback = document.createElement('p'); fallback.innerHTML='Your browser does not support embedding this PDF. You can open it using <a href="' + embedNode.src + '" target="_blank">this link</a>.'; embedNode.appendChild(fallback); } } // Embed the PDF PDFwithFallback('pdf/sample-3pp.pdf', '#example1'); (My test process was to load the page, F12 to open the developer tools, remove the embed using the Inspector, then execute the workaround code using the Console.)