为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Embed PDF not working windows10 firefox65 32bit

more options

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.

所有回复 (9)

more options

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?

more options

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?

more options

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?

more options

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

more options

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

more options

doesn't work for neither :(

more options

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

more options

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

more options

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 using Firefox’s built-in viewer


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