Skip to content

Commit f3f120a

Browse files
feat: v2.2.0
1 parent 9011343 commit f3f120a

File tree

6 files changed

+71
-27
lines changed

6 files changed

+71
-27
lines changed

README.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,20 @@ Site: [https://laomai-codefee.github.io/pdfjs-annotation-extension/](https://l
2020
---
2121

2222
## 📣 Recent Updates
23-
* 🔥🔥 **2025.5.19 Version 2.1.1** – Key features include:
23+
24+
🔥🔥 **2025.6.27 v2.2.0 Version**, main updates include:
25+
26+
1. **New Annotation Types** – Added arrow and cloud line annotations
27+
2. **Signature** – Added support for creating signatures via text input or image upload; text input supports font selection
28+
3. **Stamping** – Added default stamps, custom stamp creation, and image-based stamp uploads; custom stamps support settings for text color, style, font, background, and border; timestamp supports username, date, and custom text
29+
4. **Annotation Status** – Added annotation status options: Accepted, Rejected, Canceled, Completed, Closed, and None
30+
5. **Annotation Export** – Added Excel export functionality for annotations
31+
6. **Connecting Lines** – Added connectors between annotations and shapes
32+
7. **Annotation Styles** – Added style settings for each annotation type, supporting color, stroke width, and opacity adjustments
33+
8. **Bug Fixes and Interaction Improvements** – Various bug fixes and optimizations to enhance user experience
34+
35+
---
36+
* **2025.5.19 Version 2.1.1** – Key features include:
2437
1. **Sidebar Collapse Support** – Added `DEFAULT_SIDE_BAR_OPEN` to control whether the sidebar is shown. It is visible by default.
2538
2. **Annotation Filtering Support** – Added annotation filtering functionality, allowing filters by author and annotation type.
2639
3. **Improved Annotation Highlighting Logic** – Annotations are now highlighted even when not selected, improving the overall user experience.
@@ -58,13 +71,16 @@ For PDF Viewer users, this is a highly useful feature. If your requirement is si
5871
2. Circle
5972
3. Free Hand (grouped if drawn within a short time)
6073
4. Free Highlight (with auto-correction)
61-
5. FreeText
62-
6. Signature
63-
7. Stamp (upload custom images)
64-
8. Text Highlight
65-
9. Text Strikeout
66-
10. Text Underline
67-
11. Annotation Selection (use double-click to delete the selected object)
74+
5. Arrow
75+
6. Cloud
76+
7. FreeText
77+
8. Signature
78+
9. Stamp (upload custom images)
79+
10. Text Highlight
80+
11. Text Strikeout
81+
12. Text Underline
82+
13. Text
83+
14. Annotation Selection (use double-click to delete the selected object)
6884

6985
## 3. Editing existing annotations in PDF files
7086

@@ -119,7 +135,16 @@ Open the URL: http://localhost:8080/web/viewer.html to see the result.
119135
```bash
120136
ae_post_url= URL for submitting annotation data
121137
```
122-
Usage: http://localhost:8888/web/viewer.html?#ae_username=laomai&ae_get_url=http://localhost:8888/pdfjs-annotation-extension-testdata.json&ae_post_url=http://localhost:8888/save
138+
139+
```bash
140+
ae_default_editor_active = true | false # Whether to activate the editor by default
141+
```
142+
143+
```bash
144+
ae_default_sidebar_open = true | false # Whether to open the sidebar by default
145+
```
146+
147+
Usage: http://localhost:8888/web/viewer.html?#ae_username=laomai&ae_get_url=http://localhost:8888/pdfjs-annotation-extension-testdata.json&ae_post_url=http://localhost:8888/save&ae_default_editor_active=true&ae_default_sidebar_open=true
123148
124149
### Default Configuration
125150
```

README_CN.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@
2020
---
2121

2222
## 📣 近期更新
23-
24-
* 🔥🔥**2025.5.19 v2.1.1 版本**,主要包含如下内容
25-
1. **支持侧边栏折叠** - 增加 DEFAULT_SIDE_BAR_OPEN 控制侧边栏是否隐藏,默认显示
26-
2. **支持批注过滤** - 增加批注过滤功能,可通过作者、批注类型进行过滤
27-
3. **优化批注加亮逻辑** - 批注即使不选中也会加亮,改善体验
23+
* 🔥🔥**2025.6.27 v2.2.0 版本**,主要包含如下内容
24+
1. **增加新的批注类型** - 增加箭头、云线
25+
2. **签名** - 增加输入、上传图片形成签名,输入文字支持字体选择
26+
3. **盖章** - 增加默认印章,自定义印章及上传图片作为印章,自定义印章支持文字颜色、样式、字体、背景、边框设置,时间戳支持用户名、日期及自定义文字
27+
4. **批注状态** - 增加批注状态设置,接受、拒绝、取消、完成、关闭、无
28+
5. **批注导出** - 增加批注 Excel 导出功能
29+
6. **批注样式** - 各批注样式设置,支持颜色、笔触宽度、透明度
30+
7. **连线** - 增加批注与图形间的连线
31+
8. 一些 BUG 修正及交互优化
32+
---
33+
* **2025.5.19 v2.1.1 版本**,主要包含如下内容
34+
1. **支持侧边栏折叠** - 增加 DEFAULT_SIDE_BAR_OPEN 控制侧边栏是否隐藏,默认显示
35+
2. **支持批注过滤** - 增加批注过滤功能,可通过作者、批注类型进行过滤
36+
3. **优化批注加亮逻辑** - 批注即使不选中也会加亮,改善体验
2837
* **2025.5.16 v2.1.0 版本**,主要包含如下内容
29-
1. **支持导出 PDF 功能** - 将所绘制批注导出到新的 PDF 文件,支持批注类型 TEXT、HIGHLIGHT、UNDERLINE、STRIKEOUT、SQUARE、CIRCLE、INK、POLYLINE、FREETEXT、STAMP
30-
2. **签名、盖章** - 增加 ALLOW_REPLY_ON_STAMP 控制是否允许评论、回复,默认关闭
31-
3. **新增 Note 批注工具** - 对应 PDF Text 类型批注
38+
1. **支持导出 PDF 功能** - 将所绘制批注导出到新的 PDF 文件,支持批注类型 TEXT、HIGHLIGHT、UNDERLINE、STRIKEOUT、SQUARE、CIRCLE、INK、POLYLINE、FREETEXT、STAMP
39+
2. **签名、盖章** - 增加 ALLOW_REPLY_ON_STAMP 控制是否允许评论、回复,默认关闭
40+
3. **新增 Note 批注工具** - 对应 PDF Text 类型批注
3241

3342
---
3443

@@ -59,14 +68,16 @@
5968
2. 圆形
6069
3. 自由绘制,一段时间内的绘制会被归为一组
6170
4. 自由高亮,有自动修正
62-
5. 文字
63-
6. 签名
64-
7. 盖章,自由上传图片
65-
8. 文字高亮
66-
9. 文字删除线
67-
10. 文字下划线
68-
11. 注解
69-
12. 选择,选中对象,可双击删除
71+
5. 箭头
72+
6. 云线
73+
7. 文字
74+
8. 签名
75+
9. 盖章
76+
10. 文字高亮
77+
11. 文字删除线
78+
12. 文字下划线
79+
13. 注解
80+
14. 选择
7081

7182
## 3、PDF 文件原有批注编辑,支持类型如下
7283

@@ -125,7 +136,15 @@
125136
ae_post_url= 批注数据提交地址
126137
```
127138

128-
使用方式 : http://localhost:8888/web/viewer.html?#ae_username=老麦&ae_get_url=http://localhost:8888/pdfjs-annotation-extension-testdata.json&ae_post_url=http://localhost:8888/save
139+
```bash
140+
ae_default_editor_active= true | false 是否激活编辑器
141+
```
142+
143+
```bash
144+
ae_default_sidebar_open= true | false 是否打开侧边栏
145+
```
146+
147+
使用方式 : http://localhost:8888/web/viewer.html?#ae_username=老麦&ae_get_url=http://localhost:8888/pdfjs-annotation-extension-testdata.json&ae_post_url=http://localhost:8888/save&ae_default_editor_active=true&ae_default_sidebar_open=true
129148

130149
### 默认配置修改
131150

examples/demo.gif

94.8 KB
Loading

examples/pdfjs-4.3.136-dist/web/pdfjs-annotation-extension/pdfjs-annotation-extension.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)