键盘敲击者cncxz

  博客园 :: 首页 :: 联系 :: 订阅 订阅 :: 管理
  34 Posts :: 0 Stories :: 282 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下载样式的文件上传控件

标签: javascript, pdf
posted on 2008-02-01 11:20 cncxz(虫虫) 阅读(2802) 评论(17) 编辑 收藏

Feedback

#1楼2008-02-01 11:35周银辉      
好东西
 回复 引用 查看   
#2楼2008-02-01 13:03杨义金      
不支持中文显示,很难应用。
 回复 引用 查看   
#3楼2008-02-01 13:08怪虎      
非常好~~~~~~~~~~~~
 回复 引用 查看   
#4楼[楼主]2008-02-01 13:13cncxz(虫虫)      
@杨义金
我测试时支持中文啊,你查看这个地址的pdf文件http://202.38.64.10/~zhouq/doc/ws2008.pdf
或许对个别中文的pdf不支持
 回复 引用 查看   
我下过来在本地,好像试了,提示JS出错呀
 回复 引用   
this.data['errorMessage']=at.fP.fZ这行出错,楼主什么原因呀
 回复 引用   
有没有做好的例子子,发一个上来,让我们下过来看看!
 回复 引用   
我也出错了 奇怪的说
 回复 引用   
#9楼[楼主]2008-02-01 14:05cncxz(虫虫)      
@诛仙 @it_lwj
把完整的调用中文pdf的例子发上了,这里显示正常
 回复 引用 查看   
还有楼主,你知道不知道他产生的图片放到那里了,我们能修改他的PDF吗
 回复 引用   
速度好像太慢了。
 回复 引用 查看   
LZ,本机调试的时候好像不行。
 回复 引用   
不好吧!要联到他们的链接。。。不安全
 回复 引用   
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:39shirleyfang      
好慢啊 根本加载不到文件啊
 回复 引用 查看   
我使用该工具调试成功了,详见http://sysuxk.javaeye.com/admin/blogs/362825
 回复 引用   
确实 是爽呀。
 回复 引用 查看