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

Unified Diff: fx/matrix/transformation.pdf

Issue 1020983002: Add matrix/ 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/matrix/bug_cm_rotate_expected.pdf.0.png ('k') | fx/matrix/transformation_expected.pdf.0.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fx/matrix/transformation.pdf
diff --git a/fx/matrix/transformation.pdf b/fx/matrix/transformation.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..fa52d6915ad1063d4c5024f10ad6e24611d978b2
--- /dev/null
+++ b/fx/matrix/transformation.pdf
@@ -0,0 +1,147 @@
+%PDF-1.4
+
+1 0 obj
+<<
+ /Type /Catalog
+ /Outlines 6 0 R
+ /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 [-50 -300 300 300]
+ /Contents 4 0 R
+ /Resources << /Font<</Font1 5 0 R>> >>
+>>
+endobj
+
+4 0 obj
+<<
+ /Length 0
+>>stream
+%draw x and y axis.
+0 0 0 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+
+%draw base n
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+%draw translation
+q
+
+1 0 0 1 50 100 cm
+1 w
+1 0 0 RG
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+0.866 0.5 -0.5 0.866 0 0 cm
+0 1 0 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+3 0 0 1 0 0 cm
+0 0 1 RG
+1 w
+0 -100 m
+0 100 l
+s
+-100 0 m
+100 0 l
+s
+BT
+/Font1 100 Tf
+1 Tr
+(n) Tj
+ET
+
+Q
+
+BT
+/Font1 12 Tf
+-10 -30 TD
+0 Tr
+(----Black figures denote orignal coordinate system.) '
+(----Red figures denote coordinate system after translation.) '
+(----Green figures denote coordinate system after rotation.) '
+(----Blue figures denote coordinate system after scaling.) '
+ET
+
+endstream
+endobj
+
+5 0 obj
+<<
+ /Type /Font
+ /Subtype /Type1
+ /BaseFont /Helvetica
+>>
+endobj
+
+6 0 obj
+<<
+ /Type /Outlines
+ /First 7 0 R
+ /Last 7 0 R
+ /Count 1
+>>
+endobj
+
+7 0 obj
+<<
+ /Title (examples of transformations of coordiate system)
+ /Parent 6 0 R
+ /Dest [3 0 R /Fit]
+>>
+endobj
+
+xref
+trailer
+<<
+ /Size 0
+ /Root 1 0 R
+>>
+startxref
+0
+
+%%EOF
« no previous file with comments | « fx/matrix/bug_cm_rotate_expected.pdf.0.png ('k') | fx/matrix/transformation_expected.pdf.0.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698