Add shading/ directory to corpus
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1026583002
diff --git a/fx/shading/2_shading_type1.pdf b/fx/shading/2_shading_type1.pdf
new file mode 100644
index 0000000..2fc8023
--- /dev/null
+++ b/fx/shading/2_shading_type1.pdf
@@ -0,0 +1,109 @@
+%PDF-1.7
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj % Page object
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources 4 0 R
+ /Contents 30 0 R
+ /MediaBox [0 0 600 600]
+ %/CropBox [0 0 400 300]
+>>
+endobj
+
+4 0 obj
+<<
+ /Shading <</Sh2 6 0 R>>
+ /Pattern <</P1 10 0 R>>
+>>
+endobj
+
+
+6 0 obj %See page 305 and page 308
+<<
+ /ShadingType 1 %Function-based shading
+ /ColorSpace /DeviceRGB
+ /Domain [-1.0 1.0 -1.0 1.0]
+ /Function [9 0 R 9 0 R 9 0 R]
+ /Matrix [72 0 0 72 0 0] %1 inch
+ /BBox [0 0 72 72]
+ /Background [0.0 0.5 0.1]
+>>
+endobj
+
+9 0 obj
+<<
+ /FunctionType 4
+ /Domain [-1.0 1.0 -1.0 1.0 ]
+% /Domain [0 2.0 0.0 2.0 ]
+ /Range [-1.0 1.0]
+ /Length 0
+>>
+stream
+{
+360 mul sin 2 div exch 360 mul sin 2 div add
+}
+endstream
+endobj
+
+10 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 6 0 R
+>>
+endobj
+30 0 obj
+<<
+ /Length 0
+>>
+stream
+
+q
+/Sh2 sh
+Q
+
+q
+1 0 0 1 100 400 cm
+/Sh2 sh
+Q
+
+0 0 72 72 re
+S
+
+q
+/Pattern cs
+/P1 scn
+20 300 100 100 re
+f
+Q
+endstream
+endobj
+
+xref
+
+trailer
+<<
+ /Size 0
+ /Root 1 0 R
+>>
+startxref
+0
+
+%%EOF
+
diff --git a/fx/shading/2_shading_type1_expected.pdf.0.png b/fx/shading/2_shading_type1_expected.pdf.0.png
new file mode 100644
index 0000000..bc4fe80
--- /dev/null
+++ b/fx/shading/2_shading_type1_expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type1_sc_.pdf b/fx/shading/2_shading_type1_sc_.pdf
new file mode 100644
index 0000000..2994a1e
--- /dev/null
+++ b/fx/shading/2_shading_type1_sc_.pdf
@@ -0,0 +1,101 @@
+%PDF-1.7
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj % Page object
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources 4 0 R
+ /Contents 30 0 R
+ /MediaBox [0 0 600 600]
+ %/CropBox [0 0 400 300]
+>>
+endobj
+
+4 0 obj
+<<
+ /Shading <</Sh2 6 0 R>>
+ /Pattern <</P1 10 0 R>>
+>>
+endobj
+
+
+6 0 obj %See page 305 and page 308
+<<
+ /ShadingType 1 %Function-based shading
+ /ColorSpace /DeviceRGB
+ /Domain [-1.0 1.0 -1.0 1.0]
+ /Function [9 0 R 9 0 R 9 0 R] %ÕâÀï˵Ã÷RGBÈý¸ö·ÖÁ¿µÄÖµÊÇÒ»ÑùµÄ£¬Ò²¾ÍÊÇ˵ÕâÓ¦¸ÃÊÇÒ»¸ö´Ó°×µ½ºÚÖ®¼äµÄÑÕÉ«
+
+ /Matrix [72 0 0 72 0 0] %1 inch
+% /BBox [0 0 72 72]
+ /BBox [0 0 100 100]
+ /Background [0.0 0.5 0.1]
+>>
+endobj
+
+9 0 obj
+<<
+ /FunctionType 4
+ /Domain [-1.0 1.0 -1.0 1.0 ]
+% /Domain [0 2.0 0.0 2.0 ]
+ /Range [-1.0 1.0]
+ /Length 0
+>>
+stream
+{
+360 mul sin 2 div exch 360 mul sin 2 div add
+}
+endstream
+endobj
+
+10 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 6 0 R
+>>
+endobj
+30 0 obj
+<<
+ /Length 0
+>>
+stream
+
+
+
+q
+/Pattern cs
+/P1 scn
+0 0 300 300 re
+f
+Q
+endstream
+endobj
+
+xref
+
+trailer
+<<
+ /Size 0
+ /Root 1 0 R
+>>
+startxref
+0
+
+%%EOF
+
diff --git a/fx/shading/2_shading_type1_sc__expected.pdf.0.png b/fx/shading/2_shading_type1_sc__expected.pdf.0.png
new file mode 100644
index 0000000..0da1e19
--- /dev/null
+++ b/fx/shading/2_shading_type1_sc__expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type3.pdf b/fx/shading/2_shading_type3.pdf
new file mode 100644
index 0000000..bc93108
--- /dev/null
+++ b/fx/shading/2_shading_type3.pdf
@@ -0,0 +1,115 @@
+%PDF-1.7
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj % Page object
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /Resources 4 0 R
+ /Contents 30 0 R
+ /MediaBox [0 0 400 300]
+>>
+endobj
+
+4 0 obj
+<<
+% /Shading <</Sh1 6 0 R>>
+ /Pattern <</Pt1 5 0 R>>
+>>
+endobj
+
+5 0 obj
+<<
+ /PatternType 2
+ /Shading 6 0 R
+ /Matrix [27 0 0 27 200 150]
+>>
+endobj
+
+6 0 obj
+<<
+ /ShadingType 3
+ /ColorSpace /DeviceCMYK
+ /Background [1 0 0 1]
+ %/BBox [0 0 50 50] %% ¾ÍÏ൱ÓÚÒ»¸öclipping
+ /Coords [0.0 0.0 0.096 0.0 0.0 3.000]
+ /Function 10 0 R
+ /Extend [false false]
+>>
+endobj
+
+10 0 obj
+<<
+ /FunctionType 3
+ /Domain [0.0 1.0]
+ /Functions [11 0 R 12 0 R]
+ /Bounds [0.708]
+ /Encode [1.0 0.0 1.0 1.0]
+>>
+endobj
+
+11 0 obj
+<<
+ /FunctionType 2
+ /Domain [0.0 1.0]
+ % /C0 [0.929 0.357 1.000 0.298]
+ %/C1 [0.631 0.278 1.000 0.027]
+/C0 [1 0 0 0]
+/C1 [0 1 0 0]
+ /N 1.048
+>>
+endobj
+
+12 0 obj
+<<
+ /FunctionType 2
+ /Domain [0.0 1.0]
+ /C0 [0.929 0.357 1.000 0.298]
+ /C1 [0.941 0.400 1.000 0.102]
+%/C0 [0 0 1 0]
+%/C1 [0 0 0 1}
+ /N 1.374
+>>
+endobj
+
+30 0 obj
+<<
+ /Length 0
+>>
+stream
+
+/Pattern cs
+/Pt1 scn
+
+50 50 300 200 re
+B
+
+endstream
+endobj
+
+xref
+
+trailer
+<<
+ /Size 0
+ /Root 1 0 R
+>>
+startxref
+0
+
+%%EOF
+
diff --git a/fx/shading/2_shading_type3_expected.pdf.0.png b/fx/shading/2_shading_type3_expected.pdf.0.png
new file mode 100644
index 0000000..15be003
--- /dev/null
+++ b/fx/shading/2_shading_type3_expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type4_h.pdf b/fx/shading/2_shading_type4_h.pdf
new file mode 100644
index 0000000..0196829
--- /dev/null
+++ b/fx/shading/2_shading_type4_h.pdf
@@ -0,0 +1,88 @@
+%PDF-1.4
+
+1 0 obj
+<< /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /MediaBox [0 0 700 600]
+ /Contents 4 0 R
+ /Resources <<
+ /Font << /F5 5 0 R >>
+ /Pattern<</PTSh4 6 0 R >>
+ /Shading<</SH4 7 0 R>>
+ >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>
+stream
+/SH4 sh
+%/Pattern cs
+%/PTSh4 sc
+%0 0 700 600 re
+%f
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 7 0 R
+>>
+endobj
+
+7 0 obj
+<<
+ /ShadingType 4
+ /ColorSpace /DeviceRGB
+ /Background [0 0 1]
+ /BitsPerCoordinate 24
+ /BitsPerComponent 16
+ /BitsPerFlag 8
+ /Decode [-288 288 -288 288 0 1 0 1 0 1]
+ /Length 0
+ /Filter /ASCIIHexDecode
+
+>>
+stream
+00 80 00 00 80 00 00 FF FF 00 00 FF FF
+00 FF FF FF FF FF FF 00 00 FF FF FF FF
+00 00 00 00 FF FF FF 00 00 FF FF FF FF
+02 00 00 00 00 00 00 00 00 FF FF FF FF
+02 FF FF FF 00 00 00 00 00 FF FF FF FF
+02 FF FF FF FF FF FF 00 00 FF FF FF FF>
+endstream
+endobj
+
+xref
+trailer
+<</Size 0 /Root 1 0 R>>
+startxref
+0
+%%EOF
\ No newline at end of file
diff --git a/fx/shading/2_shading_type4_h_expected.pdf.0.png b/fx/shading/2_shading_type4_h_expected.pdf.0.png
new file mode 100644
index 0000000..131be4c
--- /dev/null
+++ b/fx/shading/2_shading_type4_h_expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type5_h.pdf b/fx/shading/2_shading_type5_h.pdf
new file mode 100644
index 0000000..a97b3f6
--- /dev/null
+++ b/fx/shading/2_shading_type5_h.pdf
@@ -0,0 +1,91 @@
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /MediaBox [0 0 255 255]
+ /Contents 4 0 R
+ /Resources <<
+ /Font << /F5 5 0 R >>
+ /Pattern<</PTSh5 6 0 R >>
+ /Shading<</SH5 7 0 R>>
+ >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>
+stream
+/SH5 sh
+
+%/Pattern cs
+%/PTSh4 sc
+%0 0 700 600 re
+%f
+
+%0 0 50 50 re
+%f
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 7 0 R
+>>
+endobj
+
+7 0 obj
+<<
+ /ShadingType 5
+ /ColorSpace /DeviceRGB
+% /Background [0 0 1]
+ /BitsPerCoordinate 8
+ /BitsPerComponent 8
+ /VerticesPerRow 2
+ /Decode [0 255 0 255 0 1 0 1 0 1]
+ /Length 0
+ /Filter /ASCIIHexDecode
+>>
+stream
+FF FF 00 00 FF
+00 FF 00 FF 00
+FF 00 FF 00 FF
+00 00 00 FF FF>
+endstream
+endobj
+
+xref
+trailer
+<</Size 0 /Root 1 0 R>>
+startxref
+0
+%%EOF
\ No newline at end of file
diff --git a/fx/shading/2_shading_type5_h_expected.pdf.0.png b/fx/shading/2_shading_type5_h_expected.pdf.0.png
new file mode 100644
index 0000000..9ccb8ec
--- /dev/null
+++ b/fx/shading/2_shading_type5_h_expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type_6_00.pdf b/fx/shading/2_shading_type_6_00.pdf
new file mode 100644
index 0000000..e881c12
--- /dev/null
+++ b/fx/shading/2_shading_type_6_00.pdf
@@ -0,0 +1,96 @@
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /MediaBox [0 0 255 255]
+ /Contents 4 0 R
+ /Resources <<
+ /Font << /F5 5 0 R >>
+ /Pattern<</PTSh6 6 0 R >>
+ /Shading<</SH5 7 0 R>>
+ >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>
+stream
+/SH5 sh
+
+%/Pattern cs
+%/PTSh6 sc
+%0 0 700 600 re
+%f
+
+%0 0 50 50 re
+%f
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 7 0 R
+>>
+endobj
+
+7 0 obj
+<<
+ /ShadingType 6
+ /ColorSpace /DeviceCMYK
+ %/Background [0 0 0 1]
+ /BitsPerCoordinate 8
+ /BitsPerComponent 8
+ /BitsPerFlag 8
+ /BBox [0 0 255 255 ]
+ /Decode [0 255 0 255 0 1 0 1 0 1 0 1]
+ /Length 0
+ /Filter /ASCIIHexDecode
+>>
+stream
+00
+00 00 00 55 00 AA 00 FF
+55 FF AA FF FF FF FF AA
+FF 55 FF 00 AA 00 55 00
+FF 00 00 00
+00 FF 00 00
+FF 00 00 00
+00 00 00 FF>
+endstream
+endobj
+
+xref
+trailer
+<</Size 0 /Root 1 0 R>>
+startxref
+0
+%%EOF
\ No newline at end of file
diff --git a/fx/shading/2_shading_type_6_001.pdf b/fx/shading/2_shading_type_6_001.pdf
new file mode 100644
index 0000000..76447d9
--- /dev/null
+++ b/fx/shading/2_shading_type_6_001.pdf
@@ -0,0 +1,96 @@
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Pages 2 0 R
+>>
+endobj
+
+2 0 obj
+<<
+ /Type /Pages
+ /Kids [3 0 R]
+ /Count 1
+>>
+endobj
+
+3 0 obj
+<<
+ /Type /Page
+ /Parent 2 0 R
+ /MediaBox [0 0 255 255]
+ /Contents 4 0 R
+ /Resources <<
+ /Font << /F5 5 0 R >>
+ /Pattern<</PTSh6 6 0 R >>
+ /Shading<</SH5 7 0 R>>
+ >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>
+stream
+/SH5 sh
+
+%/Pattern cs
+%/PTSh6 sc
+%0 0 700 600 re
+%f
+
+%0 0 50 50 re
+%f
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Pattern
+ /PatternType 2
+ /Shading 7 0 R
+>>
+endobj
+
+7 0 obj
+<<
+ /ShadingType 6
+ /ColorSpace /DeviceCMYK
+ %/Background [0 0 0 1]
+ /BitsPerCoordinate 8
+ /BitsPerComponent 8
+ /BitsPerFlag 8
+ /BBox [0 0 255 255 ]
+ /Decode [0 255 0 255 0 1 0 1 0 1 0 1]
+ /Length 0
+ /Filter /ASCIIHexDecode
+>>
+stream
+00
+22 22 0B 39 6E 96 22 D0
+3F E2 8B A2 D0 D0 8B 96
+FF 51 D0 22 A8 00 3F 34
+FF 00 00 00
+00 FF 00 00
+FF 00 00 00
+00 00 00 FF>
+endstream
+endobj
+
+xref
+trailer
+<</Size 0 /Root 1 0 R>>
+startxref
+0
+%%EOF
\ No newline at end of file
diff --git a/fx/shading/2_shading_type_6_001_expected.pdf.0.png b/fx/shading/2_shading_type_6_001_expected.pdf.0.png
new file mode 100644
index 0000000..5e0f551
--- /dev/null
+++ b/fx/shading/2_shading_type_6_001_expected.pdf.0.png
Binary files differ
diff --git a/fx/shading/2_shading_type_6_00_expected.pdf.0.png b/fx/shading/2_shading_type_6_00_expected.pdf.0.png
new file mode 100644
index 0000000..0d597a4
--- /dev/null
+++ b/fx/shading/2_shading_type_6_00_expected.pdf.0.png
Binary files differ