pdfium/testing/resources/bug_498010830_shared_widget.in
Wang Yongjie 3422572b1d Remove flattened fields from AcroForm
Remove widget annotations from AcroForm fields when flattening a page,
and keep fields that are still referenced by other pages.

Add coverage for shared annotation arrays and shared widget annotations
across pages.

Bug: 498010830
Change-Id: I001c9780375eb297e40f5b1f87698ac9a6a47fe7
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/149070
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
2026-06-18 15:53:28 -07:00

42 lines
551 B
Plaintext

{{header}}
{{object 1 0}} <<
/Type /Catalog
/AcroForm <<
/Fields [5 0 R]
>>
/Pages 2 0 R
>>
endobj
{{object 2 0}} <<
/Type /Pages
/Count 2
/Kids [3 0 R 4 0 R]
>>
endobj
{{object 3 0}} <<
/Type /Page
/Parent 2 0 R
/Annots [5 0 R]
/MediaBox [0 0 300 300]
>>
endobj
{{object 4 0}} <<
/Type /Page
/Parent 2 0 R
/Annots [5 0 R]
/MediaBox [0 0 300 300]
>>
endobj
{{object 5 0}} <<
/Type /Annot
/Subtype /Widget
/FT /Tx
/Rect [100 100 200 130]
/T (Shared Widget)
>>
endobj
{{xref}}
{{trailer}}
{{startxref}}
%%EOF