mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
f952c5d91d
commit
dd0b14be77
3 files changed
+9
-4
No files matched your search
@@ -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)...)
|
||||
|
||||
Reference in new issue
Block a user