Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში. აქ არავინ უნდა მოგთხოვოთ ტელეფონზე დარეკვა, შეტყობინების გაგზავნა ან პირადი მონაცემების გაზიარება. რამე საეჭვოს შემჩნევისას გთხოვთ გვაცნობოთ „დარღვევის მოხსენებით“.

ვრცლად

How to Automatically Trigger PDF Printing in Firefox?

  • 3 პასუხი
  • 0 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 36 ნახვა
  • ბოლოს გამოეხმაურა TyDraniu

In previous versions of Firefox (up to version 133), it was possible to automatically trigger printing of a PDF file by loading it into an iframe from a sandboxed iframe and call print. However, starting with version 134, this no longer works.

Is there any other way to automatically trigger the print dialog for a PDF file in Firefox, similar to how it can be done in Chrome/Edge (e.g., by opening the PDF in a new window and directly triggering the print dialog without additional button clicks)?

In previous versions of Firefox (up to version 133), it was possible to automatically trigger printing of a PDF file by loading it into an iframe from a sandboxed iframe and call print. However, starting with version 134, this no longer works. Is there any other way to automatically trigger the print dialog for a PDF file in Firefox, similar to how it can be done in Chrome/Edge (e.g., by opening the PDF in a new window and '''directly triggering the print dialog without additional button clicks''')?

ყველა პასუხი (3)

Could you test today's release of Firefox 134.0.2? It fixed some cross-frame logic that might be relevant to your problem, depending on how you trigger printing.

გამოსადეგია?

I tried your solution, but the issue remains.

Previously, I used a sandboxed iframe (iframe1) to load a regular iframe (iframe2) and display a PDF. This allowed me to automatically trigger printing without user interaction. However, since the changes between the 2024-11-13-09-48-33-mozilla-central and 2024-11-13-21-52-56-mozilla-central builds (related to Bug 1724924), PDFs no longer load in sandboxed iframes. Because sandbox restrictions are propagated, iframe2 cannot open the PDF file and trigger printing.

I need a way to automatically print PDFs (opening the print dialog without user interaction), similar to Chrome and Edge, where it's possible to open a PDF in a new window and immediately trigger printing.

Is there any way to automatically print PDFs in Firefox from a sandboxed iframe?

გამოსადეგია?

If your user case is working in Ch* and Edge, try to create a new bug on https://bugzilla.mozilla.org

გამოსადეგია?

დასვით კითხვა

უნდა შეხვიდეთ ანგარიშზე პასუხის დასაწერად. გთხოვთ, დასვათ ახალი შეკითხვა, თუ ჯერ არ გაქვთ ანგარიში.