fix(问题修复): 修复报告转换与结构保存
build.yaml / build (push) Successful in 2m10s

This commit is contained in:
xiaoqidun committed 2026-10-18 19:04:00 +08:00
1 parent f952c5d91d
commit dd0b14be77
3 files changed
+9 -4

No files matched your search

+6 -1
View File
@@ -332,7 +332,12 @@ func (p *pdfImporter) documentStructure(ctx context.Context) error {
} else {
decoded, err = pdfgo.DecodeTextString(text)
if err != nil {
return err
original, err := values.encode(text, 0)
if err != nil {
return err
}
node.Children = append(node.Children, StructureNode{Name: string(field), Namespace: pdfStructureNamespace, Children: []StructureNode{original}})
continue
}
}
node.Attributes = append(node.Attributes, pdfStructureAttribute(string(field), decoded)...)