简体   繁体   中英

How to show pdf file coming from cloud server

我有来自云服务器的pdf链接文件,我将其放入iframe中进行显示,但是当我打开页面时,它直接下载此pdf文件,但未显示文件本身,我也使用了embed和object,但它没有什么也没出现。

<iframe src='{$finalurl}' width='1000' height='1000' align='center'></iframe>

Are you required to use an i-frame?

And do you just want to show it, or download it to your 'own' server and show it? That's a big difference.

If you just want to show it (and keep it where it is):

<embed src="http://cloudservice/yourpdf.pdf" width="1000" height="1000" type='application/pdf'>

Good luck

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM