我已经写了这篇文章,但它仅在iOS浏览器上显示pdf的第一页。
<iframe type="application/pdf" src="<?php echo $pdf['url']; ?>" width="320px"
height="800px"
frameborder="1" scrolling="yes" align="left">
</iframe>
答案 0 :(得分:0)
我用以下代码解决了这个问题。
<iframe frameborder="0" scrolling="no" height="100%" width="100%" src="https://docs.google.com/gview?url=<?php echo $pdf['url'];?>&embedded=true"> </iframe>