feat(阅读编辑): 优化大文件阅读编辑、页码显示,修复异常日期
build.yaml / build (push) Successful in 41s

This commit is contained in:
xiaoqidun committed 2026-09-24 00:27:02 +08:00
1 parent e3908c1149
commit 46e6d5b622
9 files changed
+611 -152

No files matched your search

+2 -2
View File
@@ -365,14 +365,14 @@ func configureDocument(args []js.Value) (any, error) {
return currentSession.Summary(), nil
}
// documentInfo 获取字体统计和验签结果,首个参数为true时逐页扫描
// documentInfo 获取字体统计和验签结果,首个参数为true时分批扫描
// 入参: args 浏览器参数
// 返回: any 文档信息, error 错误信息
func documentInfo(args []js.Value) (any, error) {
if currentSession == nil {
return nil, fmt.Errorf("ofd document is not opened")
}
if len(args) > 0 && args[0].Bool() && !currentSession.scanFontInfo() {
if len(args) > 0 && args[0].Bool() && !currentSession.scanFontInfoBatch() {
return map[string]bool{"detailsPending": true}, nil
}
return currentSession.Info(), nil