Javascript:在同一窗口中并排打开两个Pdf Adobe

Javascript:在同一窗口中并排打开两个Pdf Adobe,javascript,angular,typescript,pdf,adobe,Javascript,Angular,Typescript,Pdf,Adobe,在Javascript或Angular中是否有办法在同一窗口中并排查看两个Adobe PDF?我手动查看了很多资源 尝试在代码中完成,可能使用window.open或其他语法 利用Angular 10 Typescript,我将在多个iFrame中打开它们 <iframe src="path/to/pdf1.pdf"></iframe> <iframe src="path/to/pdf2.pdf"></if

在Javascript或Angular中是否有办法在同一窗口中并排查看两个Adobe PDF?我手动查看了很多资源

尝试在代码中完成,可能使用window.open或其他语法


利用Angular 10 Typescript,我将在多个iFrame中打开它们

<iframe src="path/to/pdf1.pdf"></iframe>
<iframe src="path/to/pdf2.pdf"></iframe>

使用window.open

var win = window.open();
win.document.write(`<iframe width="${width}" height="${height}" src="path/to/pdf1.pdf" frameborder="0" allowfullscreen></iframe><iframe width="${width}" height="${height}" src="path/to/pdf2.pdf" frameborder="0" allowfullscreen></iframe>`)
var-win=window.open();
win.document.write(``)

如果出现此错误,除了iframe之外还有其他选择吗?“在框架中显示'url',因为它将'X-frame-Options'设置为'SAMEORIGIN'”