博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
一个基于web的pdf浏览器 (转)
阅读量:4516 次
发布时间:2019-06-08

本文共 1335 字,大约阅读时间需要 4 分钟。

有没有想过直接在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
>

 

具体看这里:

转载于:https://www.cnblogs.com/samlin/archive/2008/03/04/1090059.html

你可能感兴趣的文章
Iterator迭代器
查看>>
UIViewContentMode 的各种效果
查看>>
vim 使用、设置笔记
查看>>
hdu 3784 继续xxx定律
查看>>
浅谈MySQL存储引擎选择 InnoDB还是MyISAM
查看>>
命令行模式下获取参数的方法
查看>>
Java 异常体系
查看>>
iOS 9检测QQ、微信是否安装
查看>>
对Excel或者其他office操作推荐使用NPOI
查看>>
Java内部类、静态嵌套类、局部内部类、匿名内部类
查看>>
tp5 + layui 上传图片[支持单张和多张 ]
查看>>
黑苹果快捷键
查看>>
rsa.FromXmlString 系统找不到指定的文件
查看>>
PCB 电测试--测试点数自动输出到流程指示中(读取TGZ Stephdr文件)
查看>>
模型分离(选做)
查看>>
java 中的异步回调
查看>>
linux 自动登录
查看>>
Java NIO3:缓冲区Buffer
查看>>
Linux格式化分区报错Could not start /dev/sda No such file or directory 解决办法
查看>>
Nlog Layout
查看>>