vue-pdfjs-view

0.2.0 • Public • Published

vue-pdfjs-view

vue使用

npm 安装


npm i ofd-view -S

在 main.js 中写入以下内容:


import OfdView from "ofd-view";
import 'ofd-view/lib/viewer.css'



Vue.use(OfdView);

在 静态页 index.html 中声明dir为ltr


dir="ltr"

配置参数

参数 说明 类型 示例 默认值
file ofd文件 url []
mem parser_x.js变量 object -
secret string
digest string
canDownload 是否可下载 boolean true
canPrint 是否可打印(打印合脊那边客户看不懂新打开页的意思) boolean true
canOpen 是否可打开新文档 boolean false

Readme

Keywords

none

Package Sidebar

Install

npm i vue-pdfjs-view

Weekly Downloads

2

Version

0.2.0

License

none

Unpacked Size

13.8 MB

Total Files

9

Last publish

Collaborators

  • dltech21