[英]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? 您是否需要使用i框架?
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 祝好运
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.