Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1477)

Unified Diff: fx/shading/2_shading_type1_sc_.pdf

Issue 1026583002: Add shading/ directory to corpus (Closed) Base URL: https://pdfium.googlesource.com/pdfium_tests@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fx/shading/2_shading_type1_expected.pdf.0.png ('k') | fx/shading/2_shading_type1_sc__expected.pdf.0.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fx/shading/2_shading_type1_sc_.pdf
diff --git a/fx/shading/2_shading_type1_sc_.pdf b/fx/shading/2_shading_type1_sc_.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..2994a1eaf16eaa66f2a0f1da5113cd585302f21f
--- /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
+
« no previous file with comments | « fx/shading/2_shading_type1_expected.pdf.0.png ('k') | fx/shading/2_shading_type1_sc__expected.pdf.0.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698