如何在不使用浏览器内置 PDF 查看器的情况下在 Web 上查看 PDF?

How to view PDF on web, without using browsers builtin PDF viewer?

有没有一种方法可以让我在不使用 google chrome 上的浏览​​器内置 PDF 查看器的情况下查看 PDF?

我想要完成的是逐个文件查看 PDF。

我设法逐页拆分 PDF 文件,每一页作为一个单独的文件。

我需要逐个文件查看 PDF,并且不可滚动。 当我使用 javascript 查看 PDF 时,它总是打开 chrome 的 PDF 查看器。

编辑:我正在使用 Python 和 Pyramid 框架作为我的后端。

<script>
    window.open('test.pdf','mywindow','width=400,height=200')
</script>

感谢能提供帮助的人!

$('.btn').click(function(){

    $('.modal').on('show.bs.modal',function(){    
        $(this).find('iframe').attr('src','http://www.tutorialspoint.com/php/php_tutorial.pdf')
    })
    $('.modal').modal({show:true})
    
    $('iframe').load(function() {
    $('.loading').hide();
});
    
})
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<button class="btn btn-primary">show modal</button>

<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <iframe src="" frameborder="0"></iframe>
      </div>
  </div>
</div>

这是工作片段。