Make embedded PDF scrollable in iPad

后端 未结 8 1814
刺人心
刺人心 2021-02-01 22:24

For some reason the iPad safari browser does not handle embedded PDFs well. PDFs view fine on their own when launched standalone, but not with the object tag. The problem is t

8条回答
  •  -上瘾入骨i
    2021-02-01 23:12

    static downloadPdfChromeApp(linkSource: string) {
            // Crea un div y dentro un object para luego destruirlo y abrir una nueva ventana enviando la data
            const divpdf = document.createElement('div');
            divpdf.innerHTML = '
    ' + '
    '; document.firstElementChild.appendChild(divpdf); const frame = document.getElementById('docuFrame') as HTMLObjectElement; window.open(frame.data); divpdf.remove(); }

提交回复
热议问题