Druck-PDF in Firefox

So drucken Sie eine PDF-Datei in Firefox?

Diese Funktion ist in Chrome aber nicht in Firefox

function print_pdf(url){
    var id = 'iframe', html = '<iframe id="'+id+'" src="'+url+'" style="display:none"></iframe>';
    $('#main').append(html);
    $('#'+id).load(function(){
        document.getElementById(id).contentWindow.print();
    }
}

Fehler

Error: Permission denied to access property "print"

InformationsquelleAutor der Frage clarkk | 2015-10-21

Schreibe einen Kommentar