diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2021-04-30 18:23:17 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-10 10:32:39 +0200 |
commit | a8f5b6aaa3405e4b4eda49888ee9da8572d5473d (patch) | |
tree | e5c95bb185071cda2f81d5802cd67b366533eb2f /Base/res | |
parent | af9a7b13748cc4ccffe6f257c520b2a3b040102b (diff) | |
download | serenity-a8f5b6aaa3405e4b4eda49888ee9da8572d5473d.zip |
LibPDF: Create basic object structure
This commit is the start of LibPDF, and introduces some basic structure
objects. This emulates LibJS's Value structure, where Value is a simple
class that can contain a pointer to a more complex Object class with
more data. All of the basic PDF objects have a representation.
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/pdf/complex.pdf | 93 | ||||
-rw-r--r-- | Base/res/pdf/linearized.pdf | bin | 0 -> 3908 bytes | |||
-rw-r--r-- | Base/res/pdf/non-linearized.pdf | bin | 0 -> 13264 bytes |
3 files changed, 93 insertions, 0 deletions
diff --git a/Base/res/pdf/complex.pdf b/Base/res/pdf/complex.pdf new file mode 100644 index 0000000000..4d7a58dcb6 --- /dev/null +++ b/Base/res/pdf/complex.pdf @@ -0,0 +1,93 @@ +%PDF-1.1 +1 0 obj +<< /Kids [2 0 R 3 0 R] /Type /Pages /Count 3 >> +endobj +4 0 obj +<< >> +stream +1. 0.000000 0.000000 1. 50. 770. cm BT /F0 36. Tf (Page One) Tj ET +endstream +endobj +2 0 obj +<< + /Rotate 0 + /Parent 1 0 R + /Resources + << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> + /MediaBox [0.000000 0.000000 595.275590551 841.88976378] + /Type /Page + /Contents [4 0 R] +>> +endobj +5 0 obj +<< /PageLayout /TwoColumnLeft /Pages 1 0 R /Type /Catalog >> +endobj +6 0 obj +<< + /Rotate 0 + /Parent 3 0 R + /Resources + << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> + /MediaBox [0.000000 0.000000 595.275590551 841.88976378] + /Type /Page + /Contents [7 0 R] +>> +endobj +3 0 obj +<< /Parent 1 0 R /Kids [8 0 R 6 0 R] /Count 2 /Type /Pages >> +endobj +8 0 obj +<< + /Rotate 270 + /Parent 3 0 R + /Resources + << /Font << /F0 << /BaseFont /Times-Italic /Subtype /Type1 /Type /Font >> >> >> + /MediaBox [0.000000 0.000000 595.275590551 841.88976378] + /Type /Page + /Contents [9 0 R] +>> +endobj +9 0 obj +<< >> +stream +q 1. 0.000000 0.000000 1. 50. 770. cm BT /F0 36. Tf (Page Two) Tj ET Q +1. 0.000000 0.000000 1. 50. 750 cm BT /F0 16 Tf ((Rotated by 270 degrees)) Tj ET +endstream +endobj +7 0 obj +<< >> +stream +1. 0.000000 0.000000 1. 50. 770. cm BT /F0 36. Tf (Page Three) Tj ET +endstream +endobj +10 0 obj +<< + /Title (PDF Explained Example) + /Author (John Whitington) + /Producer (Manually Created) + /ModDate (D:20110313002346Z) + /CreationDate (D:2011) +>> +endobj xref +0 11 +0000000000 65536 f +0000000009 00000 n +0000000177 00000 n +0000000731 00000 n +0000000072 00000 n +0000000416 00000 n +0000000492 00000 n +0000001239 00000 n +0000000808 00000 n +0000001049 00000 n +0000001346 00000 n +trailer +<< + /Info 10 0 R + /Root 5 0 R + /Size 11 + /ID [<75ff22189ceac848dfa2afec93deee03> <75ff22189ceac848dfa2afec93deee03>] +>> +startxref +1516 +%%EOF diff --git a/Base/res/pdf/linearized.pdf b/Base/res/pdf/linearized.pdf Binary files differnew file mode 100644 index 0000000000..34f8324f24 --- /dev/null +++ b/Base/res/pdf/linearized.pdf diff --git a/Base/res/pdf/non-linearized.pdf b/Base/res/pdf/non-linearized.pdf Binary files differnew file mode 100644 index 0000000000..774c2ea70c --- /dev/null +++ b/Base/res/pdf/non-linearized.pdf |