Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Printing an IFrame with PDF content is no longer working using window.frames['frameId'].print();

  • 5 antwurd
  • 70 hawwe dit probleem
  • 159 werjeftes
  • Lêste antwurd fan mann_inv

I have a parent HTML page that contains an IFrame whose source is a PDF document. In the parent page, I use JavaScript to print the contents of the IFrame (the PDF document) and it no longer works. This worked fine previous to version 4.

I have a parent HTML page that contains an IFrame whose source is a PDF document. In the parent page, I use JavaScript to print the contents of the IFrame (the PDF document) and it no longer works. This worked fine previous to version 4.

Alle antwurden (5)

Does anyone have a work around to this?

This is still an issue in Firefox 4.0.1.

Anyone found a work around yet? Where can I officially report this to Mozilla?

Bewurke troch dwaddell op

Do you have test case set up or a live web page where we can check that out?

Here is an example of what I am trying to do which worked in earlier versions of Firefox and still works in Chrome. Any ideas on getting the print to work?



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PDFPrintTest.aspx.cs" Inherits="MozillaTestApp.PDFPrintTest" %>

<title></title>

<form id="form1" runat="server">
<iframe runat="server" id="pdf" name="pdf" style="width:100px; height:100px;" src="PDF/ThePDF.pdf"></iframe> <asp:button id="printButton" runat="server" text="Print" onclientclick="PrintOnload();return false;"> </asp:button>
</form>

I have same issue for printing embedded PDF files in iFrames via JavaScript in Firefox 5.0.

In previous versions it was working fine. But not in Firefox 4.0/5.0.

Is there any solution for this problem?