Tests: Add a pdf file for testing color spaces

Covers DeviceGray, CalRGB, DeviceRGB, DeviceCMYK, Lab, CalGray for now.

Does not yet cover Indexed, Pattern, Separation, DeviceN, ICCBased.

Lovingly hand-written, with the xref table fixed up by mutool.
This commit is contained in:
Nico Weber 2023-11-01 10:01:14 -04:00 committed by Tim Flynn
parent 3ff81dcb65
commit 00f1a6cf86
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00

View File

@ -0,0 +1,96 @@
%PDF-1.3
%µ¶
1 0 obj
<</Type/Pages/Kids[3 0 R]/Count 1>>
endobj
2 0 obj
<</Type/Catalog/Pages 1 0 R>>
endobj
3 0 obj
<</Type/Page/Parent 1 0 R/Resources 4 0 R/Contents 8 0 R/MediaBox[0 0 310 370]/Rotate 0>>
endobj
4 0 obj
<</ColorSpace<</MyCalRGB 5 0 R/MyLab 6 0 R/MyCalGray 7 0 R>>>>
endobj
5 0 obj
[/CalRGB<</WhitePoint[.95045 1 1.08905]/Gamma[2.16942 2.16942 2.16942]/Matrix[.41241 .21265 .01933 .35762 .71513 .11922 .18051 .07219 .95076]>>]
endobj
6 0 obj
[/Lab<</WhitePoint[.9505 1 1.089]/Range[-128 127 -128 127]>>]
endobj
7 0 obj
[/CalGray<</WhitePoint[.9505 1 1.089]/Gamma 2.222>>]
endobj
8 0 obj
<</Length 986>>
stream
/DeviceGray cs
0.2 sc 10 10 50 50 re f
0.5 sc 70 10 50 50 re f
0.8 sc 130 10 50 50 re f
1.0 sc 190 10 50 50 re B
0.0 sc 250 10 50 50 re f
/MyCalRGB cs
1 0.5 1 sc 10 70 50 50 re f
0.8 1 0 sc 70 70 50 50 re f
1 1 0.5 sc 130 70 50 50 re f
1 1 1 sc 190 70 50 50 re B
0 0 0 sc 250 70 50 50 re f
/DeviceRGB cs
1 0.5 1 sc 10 130 50 50 re f
0.8 1 0 sc 70 130 50 50 re f
1 1 0.5 sc 130 130 50 50 re f
1 1 1 sc 190 130 50 50 re B
0 0 0 sc 250 130 50 50 re f
/DeviceCMYK cs
0 0.5 1 0.1 sc 10 190 50 50 re f
0.8 1 0 0.1 sc 70 190 50 50 re f
1 0 0.5 0.1 sc 130 190 50 50 re f
1 1 1 1 sc 190 190 50 50 re f
0 0 0 0 sc 250 190 50 50 re B
/MyLab cs
80 -120 120 sc 10 250 50 50 re f
80 90 0 sc 70 250 50 50 re f
80 0 0 sc 130 250 50 50 re f
100 0 0 sc 190 250 50 50 re B
0 0 0 sc 250 250 50 50 re f
/MyCalGray cs
0.2 sc 10 310 50 50 re f
0.5 sc 70 310 50 50 re f
0.8 sc 130 310 50 50 re f
1.0 sc 190 310 50 50 re B
0.0 sc 250 310 50 50 re f
endstream
endobj
xref
0 9
0000000000 65536 f
0000000016 00000 n
0000000068 00000 n
0000000114 00000 n
0000000220 00000 n
0000000299 00000 n
0000000460 00000 n
0000000538 00000 n
0000000607 00000 n
trailer
<</Size 9/Root 2 0 R>>
startxref
1643
%%EOF