简体   繁体   English

如何显示来自云服务器的pdf文件

[英]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.

相关问题 如何从php中来自mysql数据库的动态数据生成pdf文件? - How to generate pdf file from dynamic data coming from mysql database in php? 如何在PHP浏览器中从服务器目录显示上载的pdf文件 - How to show uploaded pdf files from a server directory on the browser in PHP 如何从其他服务器php下载服务器上的pdf文件 - How to download a pdf file on server from other server php 如何从数据库获取数据并将其显示在自定义pdf文件中 - How to get data from the database and show them in a custom pdf file 如何使用 php 从 HTML 创建 pdf 文件,然后将其保存在服务器上 - How to create a pdf file from an HTML using php, and then save it on the server 如何在 Javascript 中将 jsPDF 中的 PDF 文件保存在服务器上? - How to save PDF file from jsPDF on a server in Javascript? 如何从Excel文件生成图表并将其另存为pdf文件 - How to generate charts from an excel file and save them to server as a pdf 如何从服务器选择pdf文件以上传到其他文件夹 - How to Select pdf file from server to upload in other folder 如何运行来自单独文件的PHP - How to run PHP coming from a separate file 当AJAX响应来自PHP文件时,如何在中心显示带有消息的加载程序图像并防止引导模式对话框关闭? - How to show loader image with message at center & prevent bootstrap modal dialog box from closing while AJAX response is coming from PHP file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM