Commit e67a2ed
authored
fix: Empty Page SubElements (#186)
- Changed page elements to be initalized with document text instead of page text.
- Caused all paragraphs/blocks/etc after the first page to be empty.
- Introduced in https://togithub.com/googleapis/python-documentai-toolbox/pull/123
- https://togithub.com/googleapis/python-documentai-toolbox/pull/123/files#diff-af92c6de8f8e84ca66d2fb9fa7e9bddb5bd644e944153bf7a78d35f47c05853eR251
- Added new Unit test which covers the issue
- Discovered in https://togithub.com/GoogleCloudPlatform/generative-ai/issues/2171 parent 43ba96e commit e67a2ed
File tree
3 files changed
+89723
-2
lines changed- packages/google-cloud-documentai-toolbox
- google/cloud/documentai_toolbox/wrappers
- tests/unit
- resources/multi_page
3 files changed
+89723
-2
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
0 commit comments