1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Always traverse the entire parent chain in Page_getInheritedPageProp (issue 5954)

This enables us to find resources placed on multiple levels of the tree.

Fixes 5954.
This commit is contained in:
Jonas Jenwald 2015-05-20 15:08:55 +02:00
parent d3fa65e019
commit a28ed7c834
5 changed files with 136 additions and 21 deletions

View file

@ -24,6 +24,7 @@
!issue4630.pdf
!issue5202.pdf
!issue5280.pdf
!issue5954.pdf
!alphatrans.pdf
!devicen.pdf
!cmykjpeg.pdf

78
test/pdfs/issue5954.pdf Normal file
View file

@ -0,0 +1,78 @@
%PDF-1.4
%âãÏÓ
1 0 obj
<<
/Pages 2 0 R
/Type /Catalog
>>
endobj
3 0 obj
<<
/Parent 2 0 R
/Resources
<<
/XObject
<<
>>
>>
/MediaBox [0 0 200 50]
/Type /Page
/Contents 4 0 R
>>
endobj
4 0 obj
<<
/Length 41
>>
stream
BT
10 20 TD
/F1 20 Tf
(Issue 5954) Tj
ET
endstream
endobj
2 0 obj
<<
/MediaBox [0 0 200 50]
/Resources 5 0 R
/Kids [3 0 R]
/Count 1
/Type /Pages
>>
endobj
5 0 obj
<<
/Font
<<
/F1 6 0 R
>>
>>
endobj
6 0 obj
<<
/BaseFont /Times-Roman
/Subtype /Type1
/Name /F1
/Type /Font
/Encoding /WinAnsiEncoding
>>
endobj xref
0 7
0000000000 65535 f
0000000015 00000 n
0000000282 00000 n
0000000066 00000 n
0000000188 00000 n
0000000381 00000 n
0000000427 00000 n
trailer
<<
/Root 1 0 R
/Size 7
>>
startxref
537
%%EOF

View file

@ -558,6 +558,13 @@
"link": false,
"type": "load"
},
{ "id": "issue5954",
"file": "pdfs/issue5954.pdf",
"md5": "4f60ec0d9bbeec845b681242b8982361",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "txt2pdf",
"file": "pdfs/txt2pdf.pdf",
"md5": "02cefa0f5e8d96313bb05163b2f88c8c",