xref: /aosp_15_r20/external/pdfium/testing/resources/two_signatures.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5>>
6endobj
7{{object 2 0}} <<
8  /Type /Pages
9  /MediaBox [0 0 200 300]
10  /Count 1
11  /Kids [3 0 R]
12>>
13endobj
14{{object 3 0}} <<
15  /Type /Page
16  /Parent 2 0 R
17  /Contents 4 0 R
18>>
19endobj
20{{object 4 0}} <<
21  {{streamlen}}
22>>
23stream
24q
250 0 0 rg
260 290 10 10 re B*
2710 150 50 30 re B*
280 0 1 rg
29190 290 10 10 re B*
3070 232 50 30 re B*
310 1 0 rg
32190 0 10 10 re B*
33130 150 50 30 re B*
341 0 0 rg
350 0 10 10 re B*
3670 67 50 30 re B*
37Q
38endstream
39endobj
40{{xref}}
41{{trailer}}
42{{startxref}}
43%%EOF
44
45%% First incremental update adds an initial signature and update objects to
46%% refer to it.
47{{object 1 0}} <<
48  /Type /Catalog
49  /Pages 2 0 R
50  /AcroForm <<
51    /Fields [7 0 R]
52    /SigFlags 3
53  >>
54>>
55endobj
56{{object 3 0}} <<
57  /Type /Page
58  /Parent 2 0 R
59  /Contents 4 0 R
60  /Annots [7 0 R]
61>>
62endobj
63%% ByteRange is a pairs of integers (starting byte offset, length in bytes)
64{{object 5 0}} <<
65  /Type /Sig
66  /Filter /Adobe.PPKMS
67  /SubFilter /ETSI.CAdES.detached
68  /ByteRange [0 10 30 10]
69  /Contents <308006092A864886F70D010702A0803080020101>
70  /M (D:20200624093114+02'00')
71>>
72endobj
73{{object 6 0}} <<
74  /Type /XObject
75  /Subtype /Form
76  /BBox [0 0 0 0]
77  /Length 0
78>>
79stream
80endstream
81endobj
82{{object 7 0}} <<
83  /Type /Annot
84  /Subtype /Widget
85  /FT /Sig
86  /F 132
87  /Rect [0 0 0 0]
88  /P 3 0 R
89  /T (Signature1)
90  /V 5 0 R
91  /DV 5 0 R
92  /AP <<
93    /N 6 0 R
94  >>
95>>
96endobj
97{{xref}}
98{{trailer}}
99{{startxref}}
100%%EOF
101
102%% Second incremental update adds a next signature and update objects once again to refer to it.
103{{object 1 0}} <<
104  /Type /Catalog
105  /Pages 2 0 R
106  /AcroForm <<
107    /Fields [7 0 R 10 0 R]
108    /SigFlags 3
109  >>
110>>
111endobj
112{{object 3 0}} <<
113  /Type /Page
114  /Parent 2 0 R
115  /Contents 4 0 R
116  /Annots [7 0 R 10 0 R]
117>>
118endobj
119{{object 8 0}} <<
120  /Type /Sig
121  /Filter /Adobe.PPKMS
122  /SubFilter /ETSI.CAdES.detached
123  /ByteRange [0 40 50 10]
124  /Contents <308006092A864886F70D010702A080308002010131>
125  /M (D:20200624093118+02'00')
126>>
127endobj
128{{object 9 0}} <<
129  /Type /XObject
130  /Subtype /Form
131  /BBox [0 0 0 0]
132  /Length 0
133>>
134stream
135endstream
136endobj
137{{object 10 0}} <<
138  /Type /Annot
139  /Subtype /Widget
140  /FT /Sig
141  /F 132
142  /Rect [0 0 0 0]
143  /P 3 0 R
144  /T (Signature2)
145  /V 8 0 R
146  /DV 8 0 R
147  /AP <<
148    /N 9 0 R
149  >>
150>>
151endobj
152{{xref}}
153{{trailer}}
154{{startxref}}
155%%EOF
156