Index: testing/resources/pixel/endobj6.pdf |
diff --git a/testing/resources/hello_world.pdf b/testing/resources/pixel/endobj6.pdf |
similarity index 74% |
copy from testing/resources/hello_world.pdf |
copy to testing/resources/pixel/endobj6.pdf |
index bb4f0a88e7aedbbdbe4bdc6b22ff0696bed0282b..1e0006e99c8d2b18f7a35e8fb97e3e8e0117fedd 100644 |
--- a/testing/resources/hello_world.pdf |
+++ b/testing/resources/pixel/endobj6.pdf |
@@ -35,16 +35,20 @@ endobj |
/BaseFont /Helvetica |
>> |
endobj |
+% Case 6: |
+% /Length incorrectly identifies middle of stream, and confusing |
+% keywords to trip us up. Should only render |endobj| as text. |
6 0 obj << |
+ /Length 50 |
>> |
stream |
BT |
20 50 Td |
/F1 12 Tf |
-(Hello, world!) Tj |
+(endobj is text) Tj |
0 50 Td |
-/F2 16 Tf |
-(Goodbye, world!) Tj |
+/F2 13 Tf |
+(endstream after bad /Length) Tj |
ET |
endstream |
endobj |
@@ -56,11 +60,11 @@ xref |
0000000154 00000 n |
0000000296 00000 n |
0000000374 00000 n |
-0000000450 00000 n |
+0000000593 00000 n |
trailer << |
/Size 6 |
/Root 1 0 R |
>> |
startxref |
-571 |
+740 |
%%EOF |