xref: /aosp_15_r20/external/pdfium/testing/resources/pixel/bug_1845.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  /Count 1
10  /Kids [3 0 R]
11>>
12endobj
13{{object 3 0}} <<
14  /Type /Page
15  /Parent 2 0 R
16  /Contents 4 0 R
17  /MediaBox [0 0 96 96]
18  /Resources <<
19    /XObject <<
20      /X0 5 0 R
21    >>
22  >>
23>>
24endobj
25
26% Cross formed by red horizontal rectangle overlaid with blue vertical
27% rectangle.
28{{object 4 0}} <<
29  {{streamlen}}
30>>
31stream
32q
33  % Red horizontal rectangle defined by clip.
34  8 32 80 32 re W* n
35  1 0 0 rg
36  0 0 96 96 re f
37Q
38q
39  % Blue vertical rectangle defined by masked image.
40  32 0 0 80 32 8 cm
41  /X0 Do
42Q
43endstream
44endobj
45
46% Single pixel image with /SMask to trigger masked image rendering.
47{{object 5 0}} <<
48  /Type /XObject
49  /Subtype /Image
50  /Width 1
51  /Height 1
52  /ColorSpace /DeviceRGB
53  /BitsPerComponent 8
54  /SMask 6 0 R
55  /Filter /ASCIIHexDecode
56  {{streamlen}}
57>>
58stream
5900 00 FF
60endstream
61endobj
62{{object 6 0}} <<
63  /Type /XObject
64  /Subtype /Image
65  /Width 1
66  /Height 1
67  /ColorSpace /DeviceGray
68  /BitsPerComponent 8
69  /Filter /ASCIIHexDecode
70  {{streamlen}}
71>>
72stream
7380
74endstream
75endobj
76
77{{xref}}
78{{trailer}}
79{{startxref}}
80%%EOF
81