Commit 69d63ef
Reinitialize form field appearance stream object on every field regeneration
First, appearance stream objects might be shared between different forms fields or other entities, if they are identical, so on regeneration we should not affect those other entities.
Second, the resources of the streams and other entries in stream dictionaries are not shared between regenerations. It seems that this makes sense, because resources are completely rebuilt every time, and all other important entries in the appearance stream are updated on regeneration as well.
DEVSIX-2374
Autoported commit.
Original commit hash: [70def8325]1 parent 2368898 commit 69d63ef
File tree
18 files changed
+50
-11
lines changed- itext.tests/itext.forms.tests
- itext/forms
- resources/itext/forms
- FormFieldFlatteningTest
- PdfFormFieldTest
- PdfFormFieldsCopyTest
- Utf8FormsTest
- itext/itext.forms/itext/forms/fields
18 files changed
+50
-11
lines changedLines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
240 | 265 | | |
241 | 266 | | |
242 | 267 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
568 | 590 | | |
569 | 591 | | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments