X
Tap here to go to the mobile version of the site.

Support Forum

Embed PDF not working windows10 firefox65 32bit

Posted

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
  • Top 25 Contributor
62 solutions 5373 answers

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?

Question owner

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
17415 solutions 157316 answers

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

Question owner

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
17415 solutions 157316 answers

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?

Question owner

doesn't work for neither :(

doesn't work for neither :(

Question owner

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

Question owner

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
8635 solutions 70633 answers

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