Merge pull request #3615 from yurydelendik/stopindexing
Stops objects indexing at the end
This commit is contained in:
commit
547a7aa862
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.pdf -crlf
|
@ -758,6 +758,9 @@ var XRef = (function XRefClosure() {
|
|||||||
if (ch === 37) { // %-comment
|
if (ch === 37) { // %-comment
|
||||||
do {
|
do {
|
||||||
++position;
|
++position;
|
||||||
|
if (position >= length) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
ch = buffer[position];
|
ch = buffer[position];
|
||||||
} while (ch !== 13 && ch !== 10);
|
} while (ch !== 13 && ch !== 10);
|
||||||
continue;
|
continue;
|
||||||
|
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -36,6 +36,7 @@
|
|||||||
!type4psfunc.pdf
|
!type4psfunc.pdf
|
||||||
!issue1350.pdf
|
!issue1350.pdf
|
||||||
!S2.pdf
|
!S2.pdf
|
||||||
|
!helloworld-bad.pdf
|
||||||
!zerowidthline.pdf
|
!zerowidthline.pdf
|
||||||
!issue1002.pdf
|
!issue1002.pdf
|
||||||
!issue925.pdf
|
!issue925.pdf
|
||||||
|
68
test/pdfs/helloworld-bad.pdf
Normal file
68
test/pdfs/helloworld-bad.pdf
Normal 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
|
@ -897,6 +897,12 @@
|
|||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "helloworld-bad",
|
||||||
|
"file": "pdfs/helloworld-bad.pdf",
|
||||||
|
"md5": "bf5ab1cf7fe3a502c3754f55e6ceeabd",
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "load"
|
||||||
|
},
|
||||||
{ "id": "issue818",
|
{ "id": "issue818",
|
||||||
"file": "pdfs/issue818.pdf",
|
"file": "pdfs/issue818.pdf",
|
||||||
"md5": "dd2f8a5bd65164ad74da2b45a6ca90cc",
|
"md5": "dd2f8a5bd65164ad74da2b45a6ca90cc",
|
||||||
|
Loading…
Reference in New Issue
Block a user