PDF文件中的链接不起作用 [英] Links in PDF file not working

查看:382
本文介绍了PDF文件中的链接不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚刚创建了一个带有外部链接的PDF文件,它将打开一个PDF文件。

但它不适用于我,这里是示例链接:



javascript:void(window.open('http://sampleweb.com/files/sample.pdf'))



注意:当我从网页访问时,这可以正常工作,而不是从PDF文件链接访问。



谢谢!

Hi,
I just recently created a PDF file with external links that will open a PDF file.
But its not working for me, here's the example link :

javascript:void(window.open('http://sampleweb.com/files/sample.pdf'))

Note: This works fine when i'm accessing from a web page, not from a PDF file link.

Thanks!

推荐答案

这将有效,请尝试:



< script type =text / javascript>

函数openPDF()

{

window.open('http://sampleweb.com/files/sample.pdf');

}
This will work, try this:

<script type="text/javascript">
function openPDF()
{
window.open('http://sampleweb.com/files/sample.pdf');
}


这篇关于PDF文件中的链接不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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