以网络形式打开PDF文件 [英] Open PDF File in webform

查看:326
本文介绍了以网络形式打开PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在编写一个应用程序,该应用程序将在左侧和其他右侧具有树状视图,我想根据树状视图中的Selected节点查看pdf文件.

现在我不知道如何将pdf文件链接到网页的其他部分.

请帮助我.



I am writing an application which will have tree-view in left side and other right side i want to view pdf file according to Selected node in a tree view.

Now i don''t know how to Link pdf file to other Part of a Web page.

Please help me.

推荐答案

<a href="/pdfdirectory/pdffile.pdf" target="_blank">PDF FILE</a>



应当可以解决问题.



That should do the trick.


有几种方法:
There are a couple ways:
<embed src="MyFile.pdf" width="800" height="600">
<object data="MyFile.pdf" type="application/pdf" width="800" height="600">
	Download <a href="MyFile.pdf">PDF</a>.
</object>


将表添加到表中,然后在href
Add the table to it and then used the target tag in href


这篇关于以网络形式打开PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆