2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-17 09:22:22 +00:00

Test stream that ends with name token and no newline

This commit is contained in:
Jay Berkenbilt 2018-01-27 22:37:05 -05:00
parent 633fb414af
commit cffb6fd64a
3 changed files with 56 additions and 26 deletions

View File

@ -36,4 +36,7 @@ This stream does end with a newline.
(This stream ends with a \001 bad token
-- stream 3 --
<AB X
-- stream 4 --
(ends with a name)
/ThisMustBeLast
test 3 done

View File

@ -118,8 +118,15 @@ stream
endstream
endobj
12 0 obj
<< /Length 34 >>
stream
(ends with a name)
/ThisMustBeLastendstream
endobj
xref
0 12
0 13
0000000000 65535 f
0000000045 00000 n
0000000099 00000 n
@ -132,11 +139,12 @@ xref
0000001263 00000 n
0000001283 00000 n
0000001374 00000 n
0000001430 00000 n
trailer <<
/Size 12
/Size 13
/Root 1 0 R
/QStreams [ 7 0 R 8 0 R 10 0 R 11 0 R ]
/QStreams [ 7 0 R 8 0 R 10 0 R 11 0 R 12 0 R ]
>>
startxref
1430
1515
%%EOF

View File

@ -5,7 +5,7 @@
%% Original object ID: 1 0
1 0 obj
<<
/Pages 10 0 R
/Pages 12 0 R
/Type /Catalog
>>
endobj
@ -94,12 +94,28 @@ endobj
5
endobj
%% Original object ID: 2 0
%% Original object ID: 12 0
10 0 obj
<<
/Length 11 0 R
>>
stream
(ends with a name)
/ThisMustBeLast
endstream
endobj
%QDF: ignore_newline
11 0 obj
34
endobj
%% Original object ID: 2 0
12 0 obj
<<
/Count 1
/Kids [
11 0 R
13 0 R
]
/Type /Pages
>>
@ -107,21 +123,21 @@ endobj
%% Page 1
%% Original object ID: 3 0
11 0 obj
13 0 obj
<<
/Contents 12 0 R
/Contents 14 0 R
/MediaBox [
0
0
612
792
]
/Parent 10 0 R
/Parent 12 0 R
/Resources <<
/Font <<
/F1 14 0 R
/F1 16 0 R
>>
/ProcSet 15 0 R
/ProcSet 17 0 R
>>
/Type /Page
>>
@ -129,9 +145,9 @@ endobj
%% Contents for page 1
%% Original object ID: 4 0
12 0 obj
14 0 obj
<<
/Length 13 0 R
/Length 15 0 R
>>
stream
BT
@ -142,12 +158,12 @@ ET
endstream
endobj
13 0 obj
15 0 obj
44
endobj
%% Original object ID: 6 0
14 0 obj
16 0 obj
<<
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
@ -158,7 +174,7 @@ endobj
endobj
%% Original object ID: 5 0
15 0 obj
17 0 obj
[
/PDF
/Text
@ -166,7 +182,7 @@ endobj
endobj
xref
0 16
0 18
0000000000 65535 f
0000000052 00000 n
0000000134 00000 n
@ -177,23 +193,26 @@ xref
0000001022 00000 n
0000001069 00000 n
0000001151 00000 n
0000001196 00000 n
0000001307 00000 n
0000001554 00000 n
0000001655 00000 n
0000001702 00000 n
0000001848 00000 n
0000001197 00000 n
0000001310 00000 n
0000001357 00000 n
0000001468 00000 n
0000001715 00000 n
0000001816 00000 n
0000001863 00000 n
0000002009 00000 n
trailer <<
/QStreams [
2 0 R
4 0 R
6 0 R
8 0 R
10 0 R
]
/Root 1 0 R
/Size 16
/Size 18
/ID [<31415926535897932384626433832795><31415926535897932384626433832795>]
>>
startxref
1884
2045
%%EOF