Stops objects indexing at the end

This commit is contained in:
Yury Delendik 2013-08-23 12:57:11 -05:00
parent 8fc1e669f0
commit 1f232ded90
5 changed files with 79 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.pdf -crlf

View File

@ -758,6 +758,9 @@ var XRef = (function XRefClosure() {
if (ch === 37) { // %-comment
do {
++position;
if (position >= length) {
break;
}
ch = buffer[position];
} while (ch !== 13 && ch !== 10);
continue;

View File

@ -36,6 +36,7 @@
!type4psfunc.pdf
!issue1350.pdf
!S2.pdf
!helloworld-bad.pdf
!zerowidthline.pdf
!issue1002.pdf
!issue925.pdf

View File

@ -0,0 +1,68 @@
%PDF-1.7
1 0 obj % entry point
<<
/Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<<
/Type /Pages
/MediaBox [ 0 0 200 200 ]
/Count 1
/Kids [ 3 0 R ]
>>
endobj
3 0 obj
<<
/Type /Page
/Parent 2 0 R
/Resources <<
/Font <<
/F1 4 0 R
>>
>>
/Contents 5 0 R
>>
endobj
4 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Times-Roman
>>
endobj
5 0 obj % page content
<<
/Length 44
>>
stream
BT
70 50 TD
/F1 12 Tf
(Hello, world!) Tj
ET
endstream
endobj
xref
0 6
0000000000 65535 f
0000000010 00000 n
0000000079 00000 n
0000000173 00000 n
0000000301 00000 n
0000000380 00000 n
trailer
<<
/Size 6
/Root 1 0 R
>>
startxref
492
%%EOF

View File

@ -897,6 +897,12 @@
"link": true,
"type": "eq"
},
{ "id": "helloworld-bad",
"file": "pdfs/helloworld-bad.pdf",
"md5": "bf5ab1cf7fe3a502c3754f55e6ceeabd",
"rounds": 1,
"type": "load"
},
{ "id": "issue818",
"file": "pdfs/issue818.pdf",
"md5": "dd2f8a5bd65164ad74da2b45a6ca90cc",