feat(转换能力): 增强PDF字形与扫描件转换
build.yaml / build (push) Successful in 41s

This commit is contained in:
xiaoqidun committed 2026-09-25 00:31:52 +08:00
1 parent 2ae89e54b4
commit 786b1a41c2
14 files changed
+250 -97

No files matched your search

+6 -3
View File
@@ -412,10 +412,13 @@ 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.scanFontInfoBatch() {
return map[string]bool{"detailsPending": true}, nil
if len(args) > 0 && args[0].Bool() {
if !currentSession.scanFontInfoBatch() {
return map[string]bool{"detailsPending": true}, nil
}
return map[string]any{"fonts": currentSession.fontInfos, "fontCount": len(currentSession.fontInfos), "detailsPending": false}, nil
}
return currentSession.Info(), nil
return currentSession.Details(), nil
}
// exportAttachment 分块导出附件