键盘敲击者cncxz

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  34 Posts :: 0 Stories :: 259 Comments :: 14 Trackbacks

有没有想过直接在web页面上以标签的形式显示pdf文件?看看这个由vuzit.com提供的工具吧。

Vuzit is a web-based universal office document viewer you can embed in any web page to help maintain consistent branding and site navigation. It provides document security and increases revenue by improving accessibility and user experience.

下面是显示pdf文件的核心代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  
<head>
    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    
<title>Vuzit Basic Viewer Example</title>
    
<link href="http://vuzit.com/stylesheets/Vuzit-2.1.css" rel="Stylesheet" type="text/css" />
    
<script src="http://vuzit.com/javascripts/Vuzit-2.1.js" type="text/javascript"></script>

    
<script type="text/javascript">
      
// Called when the page is loaded.  
      function initialize()  {
        
        vuzit.Base.apiKeySet(
"VuzitDemo");
        
var viewer = new vuzit.Viewer(document.getElementById("vuzit_viewer"));
        viewer.setUrl(
"http://202.38.64.10/~zhouq/doc/ws2008.pdf"{ zoom: 1, page: 2 });
      }

    
</script>

  
</head>
  
<body onload="initialize()">
    
<div id="vuzit_viewer" style="width: 650px; height: 500px;"></div>
  
</body>
</html>

具体看这里: vuzit.com官方 中文pdf文件演示

PS:推荐几个可能用到的东西:
一个基于Mootools的时间选择器(time picker)
ASPhere——不错的web.config编辑器
dhtmlxVault——firefox下载样式的文件上传控件

Tag标签: javascript,pdf
posted on 2008-02-01 11:20 cncxz(虫虫) 阅读(2235) 评论(16)  编辑 收藏 网摘 所属分类: Html资源推荐

Feedback

#1楼 2008-02-01 11:35 周银辉      
好东西

  回复  引用  查看    

#2楼 2008-02-01 13:03 杨义金      
不支持中文显示,很难应用。
  回复  引用  查看    

#3楼 2008-02-01 13:08 怪虎      
非常好~~~~~~~~~~~~
  回复  引用  查看    

#4楼[楼主] 2008-02-01 13:13 cncxz(虫虫)      
@杨义金
我测试时支持中文啊,你查看这个地址的pdf文件http://202.38.64.10/~zhouq/doc/ws2008.pdf
或许对个别中文的pdf不支持

  回复  引用  查看    

#5楼 2008-02-01 13:35 it_lwj[未注册用户]
我下过来在本地,好像试了,提示JS出错呀
  回复  引用    

#6楼 2008-02-01 13:36 it_lwj[未注册用户]
this.data['errorMessage']=at.fP.fZ这行出错,楼主什么原因呀
  回复  引用    

#7楼 2008-02-01 13:42 it_lwj[未注册用户]
有没有做好的例子子,发一个上来,让我们下过来看看!
  回复  引用    

#8楼 2008-02-01 14:01 诛仙[未注册用户]
我也出错了 奇怪的说
  回复  引用    

#9楼[楼主] 2008-02-01 14:05 cncxz(虫虫)      
@诛仙 @it_lwj
把完整的调用中文pdf的例子发上了,这里显示正常

  回复  引用  查看    

#10楼 2008-02-01 14:29 it_lwj[未注册用户]
还有楼主,你知道不知道他产生的图片放到那里了,我们能修改他的PDF吗
  回复  引用    

#11楼 2008-02-01 23:22 一支鱼刺      
速度好像太慢了。
  回复  引用  查看    

#12楼 2008-02-02 20:52 ufo0303[未注册用户]
LZ,本机调试的时候好像不行。
  回复  引用    

#13楼 2008-02-03 11:32 3333[未注册用户]
不好吧!要联到他们的链接。。。不安全
  回复  引用    

Thank you very much for your interest in Vuzit. I translated your blog post and comments but they were not very clear. If you have any questions or comments then please post them on the forum, http://forum.vuzit.com/ , and I will have them fixed as soon as possible.

Brent Matzelle
CEO, Vuzit.com

  回复  引用    

#15楼 2008-06-30 17:39 shirleyfang      
好慢啊 根本加载不到文件啊
  回复  引用  查看    

#16楼 2009-04-07 16:15 sysuxk1[未注册用户]
我使用该工具调试成功了,详见http://sysuxk.javaeye.com/admin/blogs/362825
  回复  引用    




发表评论

昵称: [登录] [注册]

主页:

邮箱:(仅博主可见)

评论内容:

  登录  注册

[使用Ctrl+Enter键快速提交评论]

0 1061033




相关文章:

相关链接: