Skip to content

Commit

Permalink
pdf-view version 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
xujiujiu committed Jan 22, 2025
1 parent 3afcabc commit 2f8e2d8
Show file tree
Hide file tree
Showing 6 changed files with 23,798 additions and 16,007 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### 1.0.7
### 1.0.9
- 新增文字和图片水印功能


### 1.0.8

- 新增 esm 支持
- 支持 webComponent 组件
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,23 @@ created() {
| max-zoom | number | 2 || 双击缩放倍数,范围1+ |
| zoom-disabled | boolean | false || 是否关闭双击缩放 |
| page-id-prefix | string | || pdf 页面元素的 id 前缀 |
| watermark | object | || 水印配置 |

### options

#### watermark
| 属性 | 类型 | 默认值 | 必填 | 说明 |
| ---------------- | ------- | ------ | ---- | --------------------------------------------------------------------- |
| type | string | || 水印类型,默认text,支持text/image |
| text | string | || 水印类型是text时,文字内容 |
| fontSize | string | 16 || 水印类型是text时,文字大小 |
| color | string | #000000 || 水印类型是text时,文字颜色 |
| url | string | || 水印类型是image时,图片地址 |
| width | number | 100 || 水印类型是image时,图片宽度 |
| height | number | || 水印类型是image时,图片高度 |
| opacity | number | 0.15 || 水印透明度 |
| angle | number | text:-30,image:0 || 水印倾斜角度 |
| spacingRatio | number | 2 || 水印间距比例 |

### 事件

Expand Down
4 changes: 2 additions & 2 deletions dist-esm/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist-umd/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 2f8e2d8

Please sign in to comment.